-
Notifications
You must be signed in to change notification settings - Fork 30
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
[UFO4] support cmap Unicode Variation Sequences #79
Comments
I see two ways of storing the UVS data:
Option 1 can be stored in plist format, with the caveat that we need to convert unicode value keys to (hex) strings, as plist dict keys must be strings. The nested data structure closely resembles the internal structure of the OpenType format 14 cmap subtable. Option 2. could be stored as a tab-separated text file, with the caveat that care has to be taken to respect the "no restrictions in glyph names" UFO policy. The lines in the file represent the Variation Sequences quite literally: Option 1 is more machine-friendly, option 2 is more human-friendly. |
Option 1 with just one sequence: <?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>FE00</key>
<dict>
<key>0030</key>
<string>zero.slash</string>
</dict>
</dict>
</plist> Option 2 with just one sequence:
|
Storing UVS could be combined with the "regular" character mapping, by using an optional third column for the variation selector:
Or maybe we should consider using (a dialect of) csv:
|
@khaledhosny do you have any opinions on which option that @justvanrossum proposed would be better to work with (and any unseen gottchas that may be missed in them)? |
I don’t have a deep knowledge of the matter, so whatever works with the tools that consume this is fine for me. |
From twitter:
|
Which, by my reading, means that the spec needs to state that the tool making the font needs to decide which UVS is the default, all the designer can do is to specify the UVS for the cmap. I'm leaning towards option 2, as it seems the easiest for editing this data (yes, spreadsheets) |
See various comments in #77.
In particular #77 (comment):
The text was updated successfully, but these errors were encountered: