Skip to content

Use of the new Fallback interface #382

@brogdonm

Description

@brogdonm

I have a scenario where I am loading a FontSystem with exactly one font and I don't want any fallback lookups. In other words, I want to gaurantee that the font is used when rendering. I then implemented my own NoFallback structure, which implements the new Fallback trait and every function returns just a &[], as I don't want it to fallback. When doing this, I would have expected all of the logs about "Failed to find preset fallback" would have been skipped over since I didn't provide any fallbacks.

Am I going about this the wrong way? I know I can go in and configure the logs to filter the messages, but I just want to use the most optimum way with loading this font and using it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions