Multiple alternate features are broken #79
Comments
|
Confirmed with Context: |
|
Can you try the feature spec without leading |
|
This seems to work. The |
This fits the puzzle. Afair I stumbled on one rule in the option parser that I couldn’t make sense of.
It’ll be handled in luaotflaod, but undocumented.
Do you mean that the first script style gets index 0? We sure could have an exception for that, but I’m not sure how general it should be, e.g. if it should apply for other features (like stylistic sets) as well. |
Right.
It should apply to any multiple alternates feature. Actually, it should apply to any feature, so that |
That’s gsub lookup type 3. Asking as a complete font n00b, is there a definitive list of those somewhere?
If I did this (offset values by one) globally this would mess up compatibility with Luatex-Fonts on a syntactical level, which would make testing much more tedious and error-prone. But I’ll meet you halfway there: with this modification phi-gamma@0127869 all Xetex-style key-value requests are incremented by one before passing them on to the fontloader. Thus Speaking of syntax: according to the Xetex Reference, the following is a valid request, too: -- so effectively at least some options should work without the plus sign? If so, which ones? Also, the options letterspace, embolden (‽), extend, and slant accept floats as value. |
The type is determined from the lookup not from the tag, any tag can be used for any feature (except a few feature that has to follow a strict behaviour like
That is what I was suggesting.
Key-value options indeed have no leading
Graphite (and AAT features) follow a different syntax, and since LuaTeX does not support them anyway, there is no need to support it (well you can parse it and issue a warning if you want). |
So the type of a lookup is known only after the font is loaded, and any feature could be type 3 ... that’s not good for validation. Since it doesn’t make sense I’ve removed the test against an alternate list but kept the bogus test for an “integer” as a safeguard.
Okay. Reading
Irregular options fields are ignored. |
In this example the second and third primes should be bigger and standing on the base line (the third is the biggest), compare with XeTeX output:
The text was updated successfully, but these errors were encountered: