Skip to content

Commit 29b12da

Browse files
jgmdevtakase1121
authored andcommitted
Use capital W when checking if font is monospaced (#8)
This change gives a better chance of properly detecting if a font is monospaced due to changes on pragtical/pragtical#122
1 parent c9a33c3 commit 29b12da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fonts/info.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ function FontInfo.check_is_monospace(font_data)
354354
if not loaded then
355355
return false, "could not load font"
356356
else
357-
if fontren:get_width("|") == fontren:get_width("w") then
357+
if fontren:get_width("|") == fontren:get_width("W") then
358358
font_data.monospace = true
359359
else
360360
font_data.monospace = false

0 commit comments

Comments
 (0)