Skip to content

Font-family name matching requires full Unicode case comparison #3675

@litherum

Description

@litherum

https://drafts.csswg.org/css-fonts-4/#localized-name-matching

This is the only place in WebKit that requires a full Unicode case matching. We have intentionally not implemented this because it’s non-performant. Instead, we just do ASCII case folding. It would be good if we could improve the performance of all implementations by specifying in the spec to use only ASCII case folding. Font lookups are very common in every page load, so performance here is very important. Also, we haven’t had web compatibility bugs due to not performing full Unicode case matching.

http://userguide.icu-project.org/transforms/casemappings says that “there is a flag for whether to apply special mappings for use with Turkic (Turkish/Azerbaijani) text data“ so if we’re going to define that it really requires full Unicode case matching, we’ll have to define how to set this flag.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions