We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0bba57b commit fb92047Copy full SHA for fb92047
richtext/richtext.lua
@@ -75,7 +75,7 @@ function M.create(text, font, settings)
75
76
-- measure width of a single space for current font
77
if not space_widths[font] then
78
- space_widths[font] = gui.get_text_metrics(font, "_").width
+ space_widths[font] = gui.get_text_metrics(font, " _").width - gui.get_text_metrics(font, "_").width
79
end
80
81
-- get metrics of node
0 commit comments