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

Implement language-based font rules #82

Open
whereswaldon opened this issue Jun 29, 2023 · 0 comments
Open

Implement language-based font rules #82

whereswaldon opened this issue Jun 29, 2023 · 0 comments

Comments

@whereswaldon
Copy link
Member

This issues is a reminder to eventually implement the TODO language-sensitive font matching rules:

Yes, that's it. You can find some examples in the substitutions_table.go file.

What is missing to implement language substitutions properly is :

  • inferring the languages supported by a font from its rune coverage : fontconfig does it by using a rune set for each common language (based on text samples), and testing for the inclusion of the language set into the font runes set. It requires a bit more work, that's why I haven't included it in this PR.
  • adding a language parameter in the Query type, which must be set by the toolkits

Originally posted by @benoitkugler in #63 (comment)

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

1 participant