How to detect color fonts #3959
-
|
Hi, there's some fonts with color on Google Fonts. If you use simple rasterization methods, you will just get what you'd see if you simply filled the outlines. That is what I want. However, if you render in a browser it uses all the colors.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
A color font has one (or more) of the color tables: |
Beta Was this translation helpful? Give feedback.
A color font has one (or more) of the color tables:
COLR,SVG,sbix,CBDT. If you strip these table from the fonts, you will get the fallback rendering that you would get in an environment that does not support these tables. Note that there is no guarantee that this fallback rendering is sensible, especially in fonts with the last two tables (they provide color bitmaps) where typically the glyph outlines will either be empty or missing completely.