Skip to content

fix: use portable font name for layer Modified column#355

Merged
spe-ciellt merged 1 commit intogerbv:developfrom
SourceParts:fix/portable-font-name
Mar 5, 2026
Merged

fix: use portable font name for layer Modified column#355
spe-ciellt merged 1 commit intogerbv:developfrom
SourceParts:fix/portable-font-name

Conversation

@rampageservices
Copy link
Copy Markdown
Contributor

The "Modified" column in the layer list tree view hard-codes "Times" as the font family:

g_object_set(G_OBJECT(renderer), "foreground", "red", "xalign", 0.5,
    "family", "Times", "size-points", 12.0, NULL);

On Windows this doesn't resolve, producing:

couldn't load font "Times 12", falling back to "Sans 12", expect ugly output.

Replace with the generic "Serif" family name, which Pango/Fontconfig resolve to an appropriate serif font on all platforms — "Times New Roman" on Windows, "DejaVu Serif" on Linux, etc.

One-line change in src/interface.c.

Ref #333

The hard-coded "Times" font family doesn't resolve on Windows,
producing: couldn't load font "Times 12", falling back to "Sans 12"

Use the generic "Serif" family name instead, which Fontconfig and
Pango resolve to an appropriate serif font on all platforms (e.g.
"Times New Roman" on Windows, "DejaVu Serif" on Linux).

Ref gerbv#333
@spe-ciellt spe-ciellt added the fix Solution for a potential problem or omission. label Mar 5, 2026
@spe-ciellt spe-ciellt merged commit 5cd1c33 into gerbv:develop Mar 5, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix Solution for a potential problem or omission.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants