> vertical.pe and vertref.pe [both from the CJK package] fail to work,
> because Fontforge doesn't support SelectByATT anymore.
>
> When I use "SelectByPosSub("vert", 1);", Fontforge says:
> SelectByPosSub: Unknown lookup subtable: vert
> Same if I use "GSUB" or "gsub" or "vertical".
>
> Does anyone know how that subtable is called?
I've now looked into the docs, and this is indeed a very good
question. `vert' is the name of the feature; the lookup itself is
unnamed in bkai00mp.ttf, and fontforge constructs a name for this
lookup. BTW, it's quite unfortunate that both the lookup and subtable
have both the same name:
'vert' Vertical Alternates (obs) in CJK Ideographic lookup 0
I consider this a bug...
George, how shall this be handled? The old commands were
SelectByATT("Substitution", "vert", "", 1);
ApplySubstitution("*", "*", "vert");
SelectInvert();
to construct a font which contains only the vertical representation
forms as addressed in the `vert' feature.
It seems to me that it is impossible to do that with the current
version.
Even if I use
lookups = GetLookups("GSUB");
i = 0;
result = -1;
while (i < SizeOf(lookups))
if (Strstr(lookups[i], "'vert'") >= 0)
result = i;
endif;
i++;
endloop;
subtables = GetLookupSubtables(lookups[result]);
i = 0;
result = -1;
while (i < SizeOf(subtables))
if (Strstr(subtables[i], "'vert'") >= 0)
result = i;
endif;
i++;
endloop;
SelectByPosSub(subtables[result], 1);
SelectInvert();
I only get the input glyph indices but not the glyph indices *after*
applying the `vert' feature.
Very bad...
Werner
_______________________________________________
Cjk maillist - [email protected]
https://lists.ffii.org/mailman/listinfo/cjk