Skip to content

Features for less fontdb - #3250

Closed
rektide wants to merge 2 commits into
iced-rs:masterfrom
rektide:unfontdb-features-2455
Closed

Features for less fontdb#3250
rektide wants to merge 2 commits into
iced-rs:masterfrom
rektide:unfontdb-features-2455

Conversation

@rektide

@rektide rektide commented Feb 14, 2026

Copy link
Copy Markdown

The core team is busy and does not have time to mentor nor babysit new contributors. If a member of the core team thinks that reviewing and understanding your work will take more time and effort than writing it from scratch by themselves, your contribution will be dismissed. It is your responsibility to communicate and figure out how to reduce the likelihood of this!

Read the contributing guidelines for more details: https://github.com/iced-rs/iced/blob/master/CONTRIBUTING.md

Gl;hf. Here's somethings that perhaps possibly maybe are vaguely somewhat a little useful for #2455.

I actually recommend the core team not accept this contribution at all, and to dismiss it and do the work themselves. Again, gl;hf.

If anyone has any encouragement or guidance, I'd also be happy to try pursuing any of the many options available in rektide#1.

rektide added 2 commits February 13, 2026 22:58
Issue: iced-rs#2455

Add a 'fontconfig' feature flag (enabled by default) that controls
whether system fonts are loaded via fontconfig on Linux. Disabling
this feature prevents loading all system fonts at startup, which
can be very slow for systems with many fonts.

Users can disable fontconfig in their Cargo.toml:
  iced = { version = "...", default-features = false, features = ["wgpu", "tiny-skia"] }
When the `fontconfig-explicit` feature is enabled, applications must
call `iced::font::configure()` before any text rendering:

    iced::font::configure(iced::font::FontConfig {
        load_system_fonts: false,
    });

This gives applications explicit control over whether system fonts are
loaded, addressing the slow startup issue on systems with many fonts.

The feature is mutually exclusive with automatic fontconfig loading -
either use `fontconfig` (automatic) or `fontconfig-explicit` (manual).

Issue: iced-rs#2455
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants