[sfnt, truetype] Don't require gvar for font to support variations
Fixes #1172 (closed).
- src/sfnt/sfobjs.c (sfnt_load_face): If
fvar
is present, tag font with multiple masters tag also ifgvar
andCFF2
are missing, butCOLR
is present. - src/truetype/ttgxvar.c (tt_set_mm_blend): Allow for a missing
gvar
table when setting variation coordinates but if agvar
table is present still sanity check it and fail on malformedness. (TT_Get_MM_Var): Don't assumefvar
needsgvar
orCFF2
in all cases, which is an overly tight check.