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

Fix GSUB vkna substitution #4

Merged
merged 2 commits into from
Jan 25, 2021

Conversation

trueroad
Copy link
Contributor

If I understand correctly, the full-width tuned for vertical writing Kana CIDs can be obtained by applying the GSUB substitution both vert and vkna to full-width horizontal Kana CIDs.

e.g.
For U+30A1 'KATAKANA LETTER SMALL A', CID+925 is full-width horizontal Kana CID.
GSUB vert substitution in aj17-gsub-jp04.fea says the following.

  substitute \925 by \7928;

Then, GSUB vkna substitution in aj17-gsub-jp04.fea says the following.

  substitute \7928 by \12548;

The substitution result, CID+12548 is full-width tuned for vertical writing Kana CID.

However, GSUB vkna substitutions do not contain CID+16333-CID+16349 full-width vertical Kana CIDs.
Therefore, applying GSUB substitution both vert and vkna to the full-width horizontal Kana, CID+16236-CID+16252, does not obtain the full-width tuned for vertical writing Kana CIDs.

e.g.
For U+31F0 'KATAKANA LETTER SMALL KU', CID+16236 is Kana full-width horizontal CID.
GSUB vert substitution in aj17-gsub-jp04.fea says the following.

  substitute \16236 by \16333;

But, GSUB vkna substitution in aj17-gsub-jp04.fea does not contain CID+16333.
Then, the substitution result, CID+16333 is not full-width tuned for vertical writing Kana CID.
The correct result is CID+16395 that is full-width tuned for vertical writing Kana CID.

This pull request adds GSUB vkna substitutions like the following.

  substitute \16333 by \16395;

So the substitution result will be correct CID+16395.

The GSUB `vkna` substitutions
from CID+16333-CID+16349 (full-width Kana vertical glyphs)
to CID+16395-CID+16411 (full-width Kana tuned for vertical writing glyphs)
were missing.

This commit adds them.
If the GSUB `vkna` substitution is used together
with the GSUB `vert` substitution, CID+16236-CID+16252 in `vkna`
are not used because they are substituted to other CIDs by `vert`.

This commit removes them.
@hatchzo
Copy link
Contributor

hatchzo commented Jan 21, 2021

This request is acceptable. I think this issue will affect not only Adobe-Japan1-7 GSUB files but also Adobe-Japan1-5 and higher. I will double-check which files have impacts carefully.

@hatchzo hatchzo merged commit ab91d93 into adobe-type-tools:master Jan 25, 2021
@trueroad trueroad deleted the fix-gsub-vkna branch January 25, 2021 10:35
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

Successfully merging this pull request may close these issues.

None yet

2 participants