Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use Google Noto Color Emoji front from CDN via CSS

I there any way to use Google's color emoji font from CDN? I was trying to use it in a jsfiddle but couldn't figure out how.

like image 998
Mladen Mihajlovic Avatar asked May 07 '17 07:05

Mladen Mihajlovic


1 Answers

You can use it like this:

@font-face {
  font-family: 'Noto Color Emoji';
  src: url(https://raw.githack.com/googlefonts/noto-emoji/main/fonts/NotoColorEmoji.ttf);
}

UPDATE

You can also give "Noto Colr Emoji Glyf" a try, which is COLRv1 font: https://fonts.googleapis.com/css2?family=Noto+Colr+Emoji+Glyf

See repo and demo.

But make sure to check browser support, as of writing it's only supported in Chrome 98+.

like image 157
Maxim Mazurok Avatar answered Sep 25 '22 07:09

Maxim Mazurok