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

Multi-valued character variants do not turn on #1037

Open
LornaSIL opened this issue Jan 30, 2025 · 2 comments
Open

Multi-valued character variants do not turn on #1037

LornaSIL opened this issue Jan 30, 2025 · 2 comments

Comments

@LornaSIL
Copy link
Collaborator

I've tried this with Scheherazade New v4.000 and v4.300.

When I select the character variants that are just a checkbox (on/off), they turn on the variants.
When I select the character variants that have a multi-value selection the variant doesn't work:

Image

With Andika I'm getting even more inconsistent results. Andika has a user-selectable aalt feature. I don't know if that makes a difference.

All the features in Andika and Scheherazade New seem to turn on properly in LibreOffice.

@davidg-sil
Copy link
Collaborator

Doing some testing on my copy of Andika... What is specified on the fonts page seems to be getting to XeTeX correctly (I've not checked the per-style font settings), but it looks to me like features are getting processed strangely by something in the XeTeX/xdvipdfm/harfbuz chain. I.e. there's no difference between:

\def\regular{"Andika:+ss01"}
\def\regular{"Andika:+ss01=0"}
\def\regular{"Andika:+ss01=1"}

(All produce double-decker a and g)

For cv43, the numbers seem advanced by 1 compared to https://software.sil.org/andika/features/
(i.e. +cv43=0 and +cv43 don't give the normal result, but what the website lists as =1, +cv43=1 gives N with a descender, and +cv43=2 gives the raised eng, with its descender on the line.

I don't know if @mhosken can comment on where the odd behaviour is happening.

@LornaSIL
Copy link
Collaborator Author

LornaSIL commented Feb 5, 2025

Stylistic Sets are either off or on. So, I suspect it's just turning the feature on whatever setting you have after the =. I think with Stylistic Sets it would be more proper to just use the first one without an equal and a value.

Character Variants can have multiple values and must select the value.

I suspect our SIL fonts haven't been very precise in our documentation of Stylistic Sets.

I've just verified the same behavior you are getting above, but within XeTeX, not PTXPrint, so that's the way XeTeX is working.

So, something like this for Andika def\regular:{"Andika:+ss01:+cv43=1"} should give you the double-storied a and g, and then capital letter form of the Eng.

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