Werner,
If avar is present, loading of named instances goes wrong. Patch
attached. Also fixes what I think was an unset psid for named instances.
This is a major issue for varfonts. Would be great if you can get it in a
release ASAP.
Thanks,
--
behdad
http://behdad.org/
diff --git a/src/truetype/ttgxvar.c b/src/truetype/ttgxvar.c
index 68458362..caf54631 100644
--- a/src/truetype/ttgxvar.c
+++ b/src/truetype/ttgxvar.c
@@ -2139,7 +2139,11 @@
goto Exit;
if ( fvar_head.instanceCount && !face->blend->avar_loaded )
+ {
+ FT_ULong offset = FT_STREAM_POS();
ft_var_load_avar( face );
+ FT_STREAM_SEEK ( offset);
+ }
ns = mmvar->namedstyle;
nsc = face->blend->normalized_stylecoords;
@@ -2159,6 +2163,8 @@
if ( usePsName )
ns->psid = FT_GET_USHORT();
+ else
+ ns->psid = 0xFFFF;
ft_var_to_normalized( face,
fvar_head.axisCount,
_______________________________________________
Freetype-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/freetype-devel