Giter Club home page Giter Club logo

Comments (7)

yisibl avatar yisibl commented on August 29, 2024 2

I rebuild the font and try this file.
twemoji-colrv0.ttf.zip

from twemoji-colr.

CoelWu avatar CoelWu commented on August 29, 2024 1

I rebuild the font and try this file.
twemoji-colrv0.ttf.zip

This works perfect for me! Do you have the modified source code? Thanks. 感谢

from twemoji-colr.

ara4n avatar ara4n commented on August 29, 2024

empirically this works...

diff --git a/layerize.js b/layerize.js
index 99399d6..ae9e886 100644
--- a/layerize.js
+++ b/layerize.js
@@ -589,13 +589,13 @@ function processFile(fileName, data) {
             ligatures.push({unicodes: unicodes, components: layers});
             // create the placeholder glyph for the ligature (to be mapped to a set of color layers)
             fs.writeFileSync(targetDir + "/glyphs/u" + unicodes.join("_") + ".svg",
-                             '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" enable-background="new 0 0 64 64"></svg>');
+                             '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36 36"><rect width="36" height="36"/></svg>');
             codepoints.push('"u' + unicodes.join("_") + '": -1');
         }
         unicodes.forEach(function(u) {
             // make sure we have a placeholder glyph for the individual character, or for each component of the ligature
             fs.writeFileSync(targetDir + "/glyphs/u" + u + ".svg",
-                             '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" enable-background="new 0 0 64 64"></svg>');
+                             '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36 36"><rect width="36" height="36"/></svg>');
             codepoints.push('"u' + u + '": ' + parseInt(u, 16));
         });
     });

...but it feels rather wrong (and i'm unsure if the correct bounding box should be being used, rather than putting them all in a fixed grid).

from twemoji-colr.

emojifreak avatar emojifreak commented on August 29, 2024

Proper bounding boxes are also required for typesetting Twemoji into PDF by ConTeXt as noted in http://tracker.luatex.org/view.php?id=1012#c1716

from twemoji-colr.

Mkalo avatar Mkalo commented on August 29, 2024

I rebuild the font and try this file. twemoji-colrv0.ttf.zip

Would love to know what was changed too.

from twemoji-colr.

laukstein avatar laukstein commented on August 29, 2024

https://github.com/mozilla/twemoji-colr/files/5939135/twemoji-colrv0.ttf.zip works on Mac Mojave Chrome v79
https://github.com/mozilla/twemoji-colr/releases/download/v0.6.0/TwemojiMozilla.ttf still has the bug.

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.