Skip to content

[css-fonts-5] Make unicode-range syntax suck less #7921

Open
@LeaVerou

Description

@LeaVerou

Right now unicode-range accepts everything in terms of codepoints. For example:

/* yen, kanji, hiragana, katakana */
unicode-range: U+A5, U+4E00-9FFF, U+30??, U+FF00-FF9F;

This has several problems:

  1. It's hard to read, even if you want to specify specific characters, you need to find their codepoints
  2. Broader character classes (e.g. Japanese letter, Emoji, Digit) need to be specified manually, which is error-prone
  3. There is no exclusion syntax (all characters in the font minus these), the range needs to be tediously constructed by starting from U+0000 and ending at U+FFFF breaking as needed in between.

Metadata

Metadata

Assignees

No one assigned

    Labels

    css-fonts-5i18n-trackerGroup bringing to attention of Internationalization, or tracked by i18n but not needing response.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions