Skip to content

Support using ab_fonts directly as well as via FontData #4311

@alexparlett

Description

@alexparlett

Describe the problem
Using the bevy integration with egui both are using ab_fonts under the hood, however because egui abstracts away the underlying usage of a FontArc there is no ability to pass this from bevy to egui, instead we have to either load the font twice, or use a custom fork of ab_glyph that allows fetching the underlying data as either &[u8] or Vec<u8>

Describe the solution you'd like
Ability to directly insert FontArcs into FontDefinitions or FontCacheImpl

Describe alternatives you've considered
Two current alternatives, to either load the font twice, or use a custom fork of ab_glyph that allows fetching the underlying data as either &[u8] or Vec<u8>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions