These past days I've been adding an experimental UI to Inkscape for tweaking parameters in OpenType variable fonts. But I may be wrong about that.Īlso, there's still plenty to be done in terms of hooking this up with both the user interface and the underlying XML schema. The relationship between pango and harfbuzz is still not very clear to me, as I have the impression that even pango_shape() invokes hb_shape() under the hood nowadays. I'll still have to figure out how to make pango (and/or harfbuzz) aware of it. For instance, shaping is still performed by pango_shape() with no clue that we're using a specific instance of a variable font. All other aspects of a variable font are not yet taken into consideration. (FT_HAS_MULTIPLE_MASTERS, FT_Get_MM_Var, FT_Var_Axis, FT_Set_Var_Design_Coordinates) At this point it only affects the glyph outline loading. The image attached to this message has an example of rendering the Decovar variable font loaded on Inkscape with both the "Weight" and the "Terminal Flared" axis boosted to their max values.Īll of this was done directly with the Freetype API. Then I made it setup the font with a harcoded set of design-space coordinates, so that I could at least see some different vectors being rendered on the SVG canvas. If so, then I'm printing to the terminal the metadata of each axis such as name, minimum-value, maximum-value and default-value. Today I was able to modify Inkscape's glyph loading routine to detect whether or not a given font has any OpenType variable font design space axis available.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |