-
Notifications
You must be signed in to change notification settings - Fork 25
Font fallback order #60
Description
I currently use a dynamic font fallback system. So whenever I encounter a missing glyph, I use fontconfig to search for a system font containing the missing glyph and load that. However when I then add the font to my existing kbts_shape_context with kbts_ShapePushFont it changes the order in which fonts are rendered as kbts__UpdateBreaks iterates the font list in reverse (stack like fashion). So my other text is suddenly rendered as glyphs from the newly loaded fallback font instead of the original font as the fallback font is now at the top of the stack.
I would assume that I am not the only one who would like a font fallback system of that kind so I think it would be nice if the ShapeContext API would allow such a usecase. With the current API I have to pop all fonts and then add them again in the order I want