Skip to content

Implement language-based font rules #82

@whereswaldon

Description

@whereswaldon

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions