ssbc / noto-color-emoji

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Noto-color-emoji

A node module which makes it easier to play with noto-color-emoji fonts

Example Usage

$ npm i noto-color-emoji require-style
$ npm i yo-yo
var requireStyle = require('require-style')
var html = require('yo-yo')

var style = html`
  <style>
    ${requireStyle('noto-color-emoji')} 

    body {
      font-family: arial, NotoColorEmoji;
    }
  </style>
`
document.head.appendChild(style)


var hello = html`
  <h1>Hello Noto! </h1>
`
document.body.appendChild(hello)

Notes :

  • order of fonts in font-family css matters. I recommend you make NotoColorEmoji a fallback (as in example), otherwise it will try to take over all your fonts
  • this "just works" in electron apps, but for bundled apps read require-style documentation about bundling transforms.

About


Languages

Language:CSS 74.0%Language:JavaScript 26.0%