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

Vertical kerning #668

Open
madig opened this issue Oct 14, 2022 · 4 comments
Open

Vertical kerning #668

madig opened this issue Oct 14, 2022 · 4 comments

Comments

@madig
Copy link
Collaborator

madig commented Oct 14, 2022

Needed for some CJK/SEA scripts. How to implement?

@khaledhosny
Copy link
Collaborator

Vertical as in vertical layout or something else?

@anthrotype
Copy link
Member

vertical layout

yeah, what else?
We'd have to enhance the kern feature writer to emit vkrn I guess.
One problem is kerning.plist doesn't say anything about vertical layout, only LTR or RTL are mentioned in https://unifiedfontobject.org/versions/ufo3/kerning.plist/#writing-direction
How do we know if a pair has to go in the vkrn feature? Is it sufficient to check the script associated with the glyphs? Or if it's conceivable that the same glyphs be kerned in either horizontal or vertical layout then we can't infer this only based on the glyph unicode properties. I'm not sure because I'm not familiar with engineering fonts for vertical layout.

As to how to encode pairs in FEA, a single metric value means y advance adjustment when it appears inside vkrn block, that I believe should be enough to support top-to-bottom writing direction: http://adobe-type-tools.github.io/afdko/OpenTypeFeatureFileSpecification.html#2eiv-value-record

(how common is bottom-to-top?)

@anthrotype
Copy link
Member

the proposed vkerning.plist didn't make any progress, maybe it's time to revive that..

unified-font-object/ufo-spec#97
unified-font-object/ufo-spec#96

@khaledhosny
Copy link
Collaborator

yeah, what else?

I’m wondering because SEA scripts are mentioned and these are horizontal scripts.

Is it sufficient to check the script associated with the glyphs

Vertical glyphs can also be laid out horizontally and vice versa.

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

3 participants