Skip to content

Commit d3491a3

Browse files
committed
GUI: Fix comparison of character size for Tonal font detection
1 parent 2c412bd commit d3491a3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/qt/tonalutils.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ bool font_supports_tonal(const QFont& font)
2121
const QSize sz = fm.size(0, s);
2222
for (const auto& c : tonal_digits) {
2323
if (!fm.inFont(c)) return false;
24+
s[0] = s[1] = s[2] = c;
2425
if (sz != fm.size(0, s)) return false;
2526
}
2627
return true;

0 commit comments

Comments
 (0)