Comments (3)
No, the problem is not metrics but setting sizes for the font, and we do that differently for colored glyphs and normal glyphs, however we make decision about colored glyphs on a font level, and not per glyph basis.
It basically breaks somewhere here
Line 305 in 1100c6e
in pair with not calling
Line 436 in 1100c6e
from crossfont.
Could you go into a bit more detail here? Are we talking about the response from the metrics
function being incorrect? That should just call out to full_metrics
, right? Which doesn't have special handling for colored glyphs as far as I can see.
The only difference we have in metrics for colored glyphs would be in get_rendered_glyph
, which affects only the glyph itself. So chances are you mean that here if the face itself is colored, this path is taken for every single glyph even if the individual glyph is not colored? Thus performing bitmap scaling.
from crossfont.
This also affects macOS: alacritty/alacritty#4415.
from crossfont.
Related Issues (11)
- Migrate from Travis CI to github actions
- freetype/fontconfig: loading a font which was installed after initializing a library will soft 'fail'
- Confused about text layout HOT 3
- Primary font ignores the fontconfig's charset property. HOT 4
- use_thin_strokes has no effect on macOS 12 HOT 8
- Add support for OT-in-SVG for freetype backend
- minimal-versions: freetype-rs dependency is too low HOT 7
- Alacritty ignores fontconfig minus charset option HOT 1
- switch from `servo-fontconfig` to `fontconfig` HOT 1
- Font metadata support
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 crossfont.