Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fea spec] Confusion around gpos with inline pair kern rule #1665

Open
cmyr opened this issue Jun 28, 2023 · 2 comments
Open

[fea spec] Confusion around gpos with inline pair kern rule #1665

cmyr opened this issue Jun 28, 2023 · 2 comments

Comments

@cmyr
Copy link

cmyr commented Jun 28, 2023

According to http://adobe-type-tools.github.io/afdko/OpenTypeFeatureFileSpecification.html#example-3c, the following two rules should be equivalent:

position s f' 10 t period;
position s f' t 10 period;

however afdko does not parse the second statement, and reports,

Positioning values are allowed only in the marked glyph sequence, or after the final glyph node when only one glyph node is marked.

I think that afdko is right and the spec is wrong, here? the specified value should always be associated with the marked glyph, so allowing it to appear at an arbitrary position in the lookahead sequence is confusing and difficult to parse.

@frankrolf
Copy link
Member

frankrolf commented Jun 28, 2023

I think this may be a typo.

pos s f' t period 10; does work; which is equivalent to the very common pos A V -20; (which can also be written as pos A' -20 V;)

@cmyr
Copy link
Author

cmyr commented Jun 28, 2023

I agree :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants