Allow override default values of vmtx in FEA syntax #1775
NightFurySL2001
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Quote from current FEA syntax spec regarding
vmtxtable:It was safe to assume that OS/2.sTypoAscender and OS/2.sTypoDescender are align to the ideographic em-box per current CJK industry standard. However, Google Fonts has recently changed the vertical metric requirements for CJK fonts with a new standard that was not observed in CJK fonts before, which includes spacing out OS/2.sTypo* values to include extraneous line gaps by default, and also using the BASE table to store the ideograhic em-box values.
The discussion can be found on google/fonts#8911 and googlefonts/googlefonts.github.io#159.
The current AFDKO toolset does not allow changing the default values for the vmtx table. A new syntax is required to define the default vmtx values.
Suggestions for
vmtxsyntax extensionSuggestion 1: without glyph name. This should only appear once in the table block.
Suggestion 2: add two new keywords: defaultVertOriginY/defaultVertAdvanceY as in the VORG. New keywords are required.
Suggestion 3: use the DFLT/dflt/includeDFLT keyword. Might crash with glyph names?
Suggestion 4: use the DFLT/dflt/includeDFLT keyword with a bracket.
Suggestion 5: instead of defining new entries, read the metrics from BASE table vert.ideo and vert.idtp. However BASE does not provide VertAdvanceY directly, instead only provides the ascender/descender values similar to how current OS/2.sTypo*. Note that many font editors does not support BASE table yet.
Fallback to OS/2.sTypo* should still be kept to maintain backwards compatibility.
CC @aaronbell.
Beta Was this translation helpful? Give feedback.
All reactions