Skip to content

Commit

Permalink
audqt: Parse font family names ending with digits correctly. Closes: #…
Browse files Browse the repository at this point in the history
…1427

The font size for "Exo 2 Bold 8" must be 8, not 2.

Follow-up fix for commit dff5092.
  • Loading branch information
radioactiveman committed Oct 11, 2024
1 parent ae77fe7 commit 762fd08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libaudqt/font-entry.cc
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ EXPORT QFont qfont_from_string(const char * name)

attr_found = true;

if (num > 0 && *endptr == '\0')
if (size == 0 && num > 0 && *endptr == '\0')
size = num;
else if (!strcmp(attr, "Light"))
weight = QFont::Light;
Expand Down

0 comments on commit 762fd08

Please sign in to comment.