Skip to content

Font Loading: Improve error experience / diagnosability when a font is unable to be loaded #334

Open
@bryphe

Description

When we fail to load a font, we simply silently fail and don't render anything - this is a very poor experience when starting with a stand-alone Revery application. This is tracking improving this experience so that a user knows exactly what went wrong and what they need to do fix it.

OPTION 1: Console warning

A simple option in the case where we can't load a font is a console warning. It's easy to miss this, though.

OPTION 2: Exception

Another option is we could throw an exception and terminate the program, with a message like "Unable to load Roboto-Regular.ttf". This is destructive but would make it immediately obvious why the app was unable to start.

Metadata

Assignees

No one assigned

    Labels

    A-fontArea: Font managementenhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions