FT_Set_Var_Design_Coordinates() does not affect previously rendered glyphs
Submitted by Khaled Hosny
Assigned to Behdad Esfahbod
Link to original bug (#102645)
Description
Created attachment 134130 Test program
I’m trying to render variable fonts with Cairo and FreeType. If I call FT_Set_Var_Design_Coordinates() before rendering any glyphs things work as expected, but if a glyph is rendered with certain variable coordinates it will not be affected by FT_Set_Var_Design_Coordinates() and will be always rendered with the old coordinates.
Looks like the glyph cash does not take variable coordinates into account. The attached test program shows the issue; the second A should be rendered using the light not the heavy weight.
Attachment 134130, "Test program":
test.c