Skip to content

Dynamic font loading #2020

Description

@CarbonSmasher

Problem Description

Right now, I think you can load dynamic fonts by putting them in the system fonts directory, and they will be automatically loaded. I want the ability to add new fonts dynamically at runtime by passing in font file data.

Proposed Solution

Maybe something like

use_consume::<FontsConfig>().add_font("Rubik", std::fs::read(rubik_path));

Alternatives Considered

No response

Additional Context

No response

Metadata

Metadata

Assignees

Labels

Projects

Status
Todo

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions