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

Old kern writer: register lookups under DFLT, too #844

Closed
wants to merge 2 commits into from

Conversation

madig
Copy link
Collaborator

@madig madig commented May 21, 2024

This ports #787 to the old kern writer.

Contrary to the new writer, here we don't try to register languages for DFLT.

@madig madig changed the title Register lookups under DFLT, too Old kern writer: register lookups under DFLT, too May 21, 2024
@madig madig force-pushed the old-kern-register-lookups-dflt branch from 54bbd2b to 5f17e66 Compare May 21, 2024 13:43
Base automatically changed from upgrade-old-kern-writer to main May 22, 2024 09:14
@madig madig force-pushed the old-kern-register-lookups-dflt branch from 5f17e66 to e36d9c1 Compare May 22, 2024 10:58
@@ -694,6 +694,7 @@ def test_kern_LTR_and_RTL(self, FontClass):

feature kern {
lookup kern_dflt;
lookup kern_ltr;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hm this looks suspicious..
the global languagesystems contain both LTR and RTL scripts in this particular test font (I see both latn and arab), if you register kern_ltr in the top part of the feature block before any explicit script/language declarations then it will be registered for all the globally defined languagesystems, but do we actually want to register the kern_ltr under arab?! Probably not. I don't know if it is benign or just plain wrong

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If kern_ltr includes kerning between common characters (e.g. punctuation or digits) it would be wrong to register it for arab, otherwise it should be redundant and tiny bit slow but otherwise harmless.

@madig madig force-pushed the old-kern-register-lookups-dflt branch from e36d9c1 to 27af8ea Compare May 24, 2024 17:05
@madig
Copy link
Collaborator Author

madig commented Sep 6, 2024

Obsoleted by #858 and #870.

@madig madig closed this Sep 6, 2024
@madig madig deleted the old-kern-register-lookups-dflt branch September 6, 2024 14:38
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.

3 participants