Skip to content

Conversation

@nicoburns
Copy link
Collaborator

Adds additional methods with the aim of making fontique a suitable replacement for fontdb in resvg:

  • load_system_fonts loads system fonts into a Collection that did not specify loading them at creation time
  • load_fonts_from_paths loads all fonts from the specified directory(s)

…ection

Signed-off-by: Nico Burns <nico@nicoburns.com>
@nicoburns nicoburns requested a review from dfrg February 5, 2026 20:09
@nicoburns nicoburns added enhancement New feature or request C-fontique Relates to the fontique crate labels Feb 5, 2026
@dfrg
Copy link
Collaborator

dfrg commented Feb 5, 2026

Generally LGTM except that reloading system fonts should probably clear caches or you’ll end up with stale family ids. If reloading isn’t required for fontdb parity then we should defer that to future work.

Signed-off-by: Nico Burns <nico@nicoburns.com>
Signed-off-by: Nico Burns <nico@nicoburns.com>
Signed-off-by: Nico Burns <nico@nicoburns.com>
Copy link
Collaborator

@dfrg dfrg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Signed-off-by: Nico Burns <nico@nicoburns.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C-fontique Relates to the fontique crate enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants