![]() ![]() But this is used only to get glyph positions. Pango passes the font variation info onto HarfBuzz via hb_font_set_variations() in pangofc-shape.c for shaping. In principle this works with FreeType 2.8 but I seemed to need 2.9 to get it to work. Using the descriptor does not have the 'variation' axes set. Pango_fc_font_lock_face() (which calls pango_ft2_font_get_face()) Pango handles font variations via the Pango Font Description however the FreeType font retrieved via: ![]() Axes values are not yet clamped to allowed range. Needs fixing (incorrect parsing, parsing not robust against variations in white-space). Reading of 'font-variation-settings' implemented. Linked to recent libraries, Inkscape can use "named" variations out-of-the box (i.e., one font file provides multiple styles). ![]() This is the same stuff we'll use in inkscape soon. Test file Google's FontView proof-of-conceptįontView is a demo program written by Google engineers to demonstrate the variable font technologies recently added to harfbuzz and freetype. Note: Chrome also supports 'font-weight' values that are not multiples of 100 (CSS Fonts Level 4 changes the allowed values of 'font-weight' to include all integers from 1 to 1000):
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |