Comments (5)
I investigated a bit more and found that the size of the SVGs might be to blame, as grunt-webfont seems to work better with larger SVGs, especially 512px ones. We might need to resize the SVGs somehow to fix this and other emojis. Relevant bug: sapegin/grunt-webfont#321
EDIT: After some testing, I have come to the conclusion that it is not the size of the SVGs.
from twemoji-colr.
Would it be worth adding an override SVG for this as a workaround? After chopping up the paths a bit with Inkscape (then trimming the markup back down again) I have an SVG that when placed in overrides produces a decent rendering.
from twemoji-colr.
That could be a viable solution.
from twemoji-colr.
I've finally pushed my mentioned override to KwanEsq@4f3c9bb
It's possible it could be simplified a bit, but it does the job.
from twemoji-colr.
So to document the steps for creating the override file:
- Copy twemoji/2/svg/1f1fa-1f1f3.svg to twemoji-colr/overrides/1f1fa-1f1f3.svg
- Open twemoji-colr/overrides/1f1fa-1f1f3.svg in Inkscape
- Select the path with the landmasses in (7th of the 9 paths in the group)
- In the "Path" menu select "Break Apart"
- Several of the ocean sections are now solid white
- Select one of the new paths making up a white ocean section
- Shift-click every re-coloured ocean section, so they are all selected at once
- Open twemoji/2/svg/1f1fa-1f1f3.svg in Inkscape
- Flick between the modified and second copy to compare and not miss any small bits
- In the "Fill and Stroke" > "Fill" panel click on "Flat colour"
- Use the colour picker to set the background blue as the fill colour
- Double check you didn't miss any small bits
- In the "Object" menu select "Group"
- "File" > "Save As..."
- Choose "Optimised SVG" as the output format
- Tick the following options:
- Options
- Shorten colour values
- Convert CSS attributes to XML attributes
- Collapse groups
- Create groups for similar attributes
- Work around renderer bugs
- SVG Output
- Remove the XML declaration
- Remove metadata
- Remove comments
- IDs
- Remove unused IDs
- Options
- Save
- Optional: open the override SVG and remove the version attribute from the root svg element
from twemoji-colr.
Related Issues (20)
- Should version number reflect Unicode/Twemoji version? HOT 1
- CODE_OF_CONDUCT.md file missing
- Should we care that some of the Twemoji filenames don't match their actual sequence HOT 1
- Update to Twemoji v12
- Provide updated releases on GitHub HOT 2
- Glyphs do not render on Firefox 66 or Chrome 74 on MacOS 10.14.4 HOT 7
- `npm install` failing HOT 2
- Update to 13.0 HOT 3
- Not showing numbers on input like 1 , 2, 3 using this font family. HOT 13
- Flag of Martinique not showing snake eyes
- Update to 13.1.0 HOT 1
- v0.6.0 release has outdated binary uploaded HOT 5
- OT: Build with national flags
- CSS font-palette documentation
- Update to 14.0.0 HOT 9
- Important metadata missing in ttf file
- Build doesnโt work due to 'unzip' dependency
- Generate COLRv1 version to use this font in more situation HOT 1
- Emojis
- Twemoji 15 Update
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from twemoji-colr.