Skip to content

Look into using OS-provided fonts as default rather than vendoring DejaVu Sans and using it everywhere #905

@GyrosGeier

Description

@GyrosGeier

It looks as if the preferences dialog would be capable of scanning /usr/share/fonts recursively, and finding the fonts in a distribution package (e.g. below /usr/share/fonts/truetype/dejavu), however if /usr/share/ngscopeclient/fonts does not exist, we don't even get to open the preferences dialog, the program immediately fails with a cryptic error message

Warning: Could not find font file "" requested in preferences database. Using default font "" instead
[00000] While loading ''
[00000] [imgui-error] (current settings: Assert=1, Log=1, Tooltip=1)
[00000] [imgui-error] In window 'NULL': Could not load font file!
ngscopeclient: ./src/imgui/imgui_draw.cpp:3142: ImFont* ImFontAtlas::AddFontFromFileTTF(const char*, float, const ImFontConfig*, const ImWchar*): Assertion `(0) && "Could not load font file!"' failed.
Aborted

Metadata

Metadata

Assignees

No one assigned

    Labels

    packagingInstallers and distributionportabilityStuff that doesn't work on some OS

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions