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

Missing name ID 25 entries in Variations Fonts. #7

Open
lemzwerg opened this issue Mar 13, 2017 · 4 comments
Open

Missing name ID 25 entries in Variations Fonts. #7

lemzwerg opened this issue Mar 13, 2017 · 4 comments
Assignees

Comments

@lemzwerg
Copy link

To make Adobe TechNote 5902 (for generating PS names for font instances) work properly, ID 25 entries in the name table (Variations PostScript Name Prefix) should be added to all VF files. The algorithm specifies that ID 16 entries should be used if ID 25 is missing, however, there are no ID 16 entries either...

@marekjez86 marekjez86 assigned behdad, brawer and zjusbo and unassigned behdad, brawer and zjusbo Mar 13, 2017
@dougfelt
Copy link

dougfelt commented Mar 13, 2017

Hmmm, I see. With non-variable fonts, we omit name id 16 if it would be the same as name id 1, assuming that code falls back to name id 1 when name id 16 is not present. With variable fonts name id 1 makes little or no sense, so it's unsurprising the spec makes no mention of it.

@lemzwerg
Copy link
Author

Actually, in my forthcoming FreeType implementation I do fall back to id 1 if there is neither id 25 nor id 16 – this is for creating PS names for GX fonts that predate the OpenType standard.

@zjusbo
Copy link

zjusbo commented Apr 20, 2017

Checked NotoSansArabic-VF.ttf as a sample and it does not contains either id 16 or id 25 in name table.

According to the TechNote 5902, the Variations PostScript Name Prefix string is used to avoid ambiguity.

My idea is to generate ID 25 from ID 16, by a mapping non-ascii char with 2 or more ascii characters.
“André Var” => Andr0eVar
“Andró Var” => Andr0oVar

é maps to 0e
ó maps to 0o
0 maps to 00

here 0 behaves like escape character.

However, I didn't get an idea on how to generate ID 25 when ID 16 is also absent.

@behdad
Copy link

behdad commented Apr 20, 2017

I suggest we don't do anything for a while.

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

No branches or pull requests

7 participants