restore original spec5d1.fea example and modify expected ttx instead
This commit is contained in:
parent
957b5fb45a
commit
796f677225
@ -2,7 +2,7 @@
|
||||
# http://www.adobe.com/devnet/opentype/afdko/topic_feature_file_syntax.html
|
||||
|
||||
feature F1 {
|
||||
sub [one one.oldstyle] [fraction slash] [two two.oldstyle] by onehalf;
|
||||
sub [one one.oldstyle] [slash fraction] [two two.oldstyle] by onehalf;
|
||||
} F1;
|
||||
|
||||
# Since the OpenType specification does not allow ligature substitutions
|
||||
@ -11,13 +11,23 @@ feature F1 {
|
||||
# if glyph classes are detected in <glyph sequence>. Thus, the above
|
||||
# example produces an identical representation in the font as if all
|
||||
# the sequences were manually enumerated by the font editor:
|
||||
#
|
||||
# NOTE(anthrotype): The previous sentence is no longer entirely true, since we
|
||||
# now preserve the order in which the ligatures (with same length and first glyph)
|
||||
# were specified in the feature file and do not sort them alphabetically
|
||||
# by the ligature component names. Therefore, the way this particular example from
|
||||
# the FEA spec is written will produce two slightly different representations
|
||||
# in the font in which the ligatures are enumerated differently, however the two
|
||||
# lookups are functionally equivalent.
|
||||
# See: https://github.com/fonttools/fonttools/issues/3428
|
||||
# https://github.com/adobe-type-tools/afdko/issues/1727
|
||||
feature F2 {
|
||||
sub one fraction two by onehalf;
|
||||
sub one fraction two.oldstyle by onehalf;
|
||||
sub one slash two by onehalf;
|
||||
sub one slash two.oldstyle by onehalf;
|
||||
sub one.oldstyle fraction two by onehalf;
|
||||
sub one.oldstyle fraction two.oldstyle by onehalf;
|
||||
sub one.oldstyle slash two by onehalf;
|
||||
sub one fraction two by onehalf;
|
||||
sub one.oldstyle fraction two by onehalf;
|
||||
sub one slash two.oldstyle by onehalf;
|
||||
sub one.oldstyle slash two.oldstyle by onehalf;
|
||||
sub one fraction two.oldstyle by onehalf;
|
||||
sub one.oldstyle fraction two.oldstyle by onehalf;
|
||||
} F2;
|
||||
|
@ -43,16 +43,16 @@
|
||||
<!-- SubTableCount=1 -->
|
||||
<LigatureSubst index="0">
|
||||
<LigatureSet glyph="one">
|
||||
<Ligature components="fraction,two" glyph="onehalf"/>
|
||||
<Ligature components="fraction,two.oldstyle" glyph="onehalf"/>
|
||||
<Ligature components="slash,two" glyph="onehalf"/>
|
||||
<Ligature components="slash,two.oldstyle" glyph="onehalf"/>
|
||||
<Ligature components="fraction,two" glyph="onehalf"/>
|
||||
<Ligature components="fraction,two.oldstyle" glyph="onehalf"/>
|
||||
</LigatureSet>
|
||||
<LigatureSet glyph="one.oldstyle">
|
||||
<Ligature components="fraction,two" glyph="onehalf"/>
|
||||
<Ligature components="fraction,two.oldstyle" glyph="onehalf"/>
|
||||
<Ligature components="slash,two" glyph="onehalf"/>
|
||||
<Ligature components="slash,two.oldstyle" glyph="onehalf"/>
|
||||
<Ligature components="fraction,two" glyph="onehalf"/>
|
||||
<Ligature components="fraction,two.oldstyle" glyph="onehalf"/>
|
||||
</LigatureSet>
|
||||
</LigatureSubst>
|
||||
</Lookup>
|
||||
@ -62,16 +62,16 @@
|
||||
<!-- SubTableCount=1 -->
|
||||
<LigatureSubst index="0">
|
||||
<LigatureSet glyph="one">
|
||||
<Ligature components="fraction,two" glyph="onehalf"/>
|
||||
<Ligature components="fraction,two.oldstyle" glyph="onehalf"/>
|
||||
<Ligature components="slash,two" glyph="onehalf"/>
|
||||
<Ligature components="fraction,two" glyph="onehalf"/>
|
||||
<Ligature components="slash,two.oldstyle" glyph="onehalf"/>
|
||||
<Ligature components="fraction,two.oldstyle" glyph="onehalf"/>
|
||||
</LigatureSet>
|
||||
<LigatureSet glyph="one.oldstyle">
|
||||
<Ligature components="fraction,two" glyph="onehalf"/>
|
||||
<Ligature components="fraction,two.oldstyle" glyph="onehalf"/>
|
||||
<Ligature components="slash,two" glyph="onehalf"/>
|
||||
<Ligature components="fraction,two" glyph="onehalf"/>
|
||||
<Ligature components="slash,two.oldstyle" glyph="onehalf"/>
|
||||
<Ligature components="fraction,two.oldstyle" glyph="onehalf"/>
|
||||
</LigatureSet>
|
||||
</LigatureSubst>
|
||||
</Lookup>
|
||||
|
Loading…
x
Reference in New Issue
Block a user