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

Fontique: Support registering a font with custom family name and FontInfo #117

Open
nicoburns opened this issue Sep 17, 2024 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@nicoburns
Copy link
Contributor

The use case for this is supporting CSS web fonts (@font-face)

Requirements:

  • Register a font, overriding the family name
  • It should be possible to register multiple fonts with the same family name
  • It should be possible to specify custom FontInfo for each font (overriding the data from the font file).

Non-requirements:

  • Supporting font collections (.ttc files). Web fonts do not support font collections, so for the purposes of this API we can assume that

Ideally it should also be possible to register custom fonts in a separate "layer" to the system fonts such that:

  • A different set of custom fonts can be used for (e.g. each page/tab), while still sharing system fonts (not entirely duplicating the database)
  • It is possible to easily "roll back"/"unregister" the custom fonts (e.g. when navigating between pages / documents)

(but perhaps this is a separate feature)

@nicoburns nicoburns added the enhancement New feature or request label Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant