Giter Club home page Giter Club logo

Comments (9)

nolanlawson avatar nolanlawson commented on July 25, 2024 7

For anyone looking for a quick fix, I used this PR (#65) plus some fixes (on my machine, it only worked with Node v10) to build the TTF file. Here is the TTF file and here is a demo.

from twemoji-colr.

atoponce avatar atoponce commented on July 25, 2024

14.0.2 released.

https://github.com/twitter/twemoji/releases/tag/v14.0.2

from twemoji-colr.

atoponce avatar atoponce commented on July 25, 2024

Just for future devs coming by this issue, following @nolanlawson's suggestion of using PR #65, I can execute make successfully with Node.js versions v10.24.1 and v11.15.0.

The build fails with Node.js versions v12.22.12, v13.14.0, v14.19.3, v15.14.0, v16.15.0, v17.9.0, & v18.2.0 with the following error:

/tmp/node-v18.2.0-linux-x64/bin/node layerize.js twe-svg.zip overrides extras build Twemoji\ Mozilla
fs.js:47
} = primordials;
    ^

ReferenceError: primordials is not defined
    at fs.js:47:5
    at req_ (/home/atoponce/src/twemoji-colr/node_modules/natives/index.js:143:24)
    at Object.req [as require] (/home/atoponce/src/twemoji-colr/node_modules/natives/index.js:55:10)
    at Object.<anonymous> (/home/atoponce/src/twemoji-colr/node_modules/fstream/node_modules/graceful-fs/fs.js:1:37)
    at Module._compile (node:internal/modules/cjs/loader:1105:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Module._load (node:internal/modules/cjs/loader:827:12)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)

Node.js v18.2.0
make: *** [Makefile:52: build/codepoints.js] Error 1

from twemoji-colr.

hpreusse avatar hpreusse commented on July 25, 2024

Just for future devs coming by this issue, following @nolanlawson's suggestion of using PR #65, I can execute make successfully with Node.js versions v10.24.1 and v11.15.0.

The build fails with Node.js versions v12.22.12, v13.14.0, v14.19.3, v15.14.0, v16.15.0, v17.9.0, & v18.2.0 with the following error:

I tend to report this as separated issue, as updating to latest version of the Emoji fonts won't solve it.

from twemoji-colr.

win98se avatar win98se commented on July 25, 2024

@nolanlawson @atoponce @hpreusse
In my submitted PR #65, I've stated in additional notes that -

On Node versions 16 and 17 (should work on all versions >=12 I guess), before running npm install (as in “Getting started” part in README.md), I have to run npm install --package-lock-only --ignore-scripts && npx npm-force-resolutions so that the make step (as in “Building the font” part also in README.md) will run successfully.

Maybe try the above as a workaround and see if it works?

from twemoji-colr.

kguelzau avatar kguelzau commented on July 25, 2024

Does anybody know when this will be merged/released and if there is a corresponding ticket to use the new version in firefox?

from twemoji-colr.

win98se avatar win98se commented on July 25, 2024

As the PR creator (refer #65), I am waiting for it too. Meanwhile, you can just replace the Firefox's included font file (yikes for Microsoft Windows 10/11 UWP users though) with your own generated font file for the time being.

from twemoji-colr.

Sav22999 avatar Sav22999 commented on July 25, 2024

@nolanlawson this apparently doesn't work correctly on Mac OS. You know why?

from twemoji-colr.

Sav22999 avatar Sav22999 commented on July 25, 2024

On MacOS the previous version of this font family didn't work. Does this version work?

from twemoji-colr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.