Skip to content

Commit

Permalink
Correct measurement of space
Browse files Browse the repository at this point in the history
  • Loading branch information
britzl committed Feb 26, 2018
1 parent 0bba57b commit fb92047
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion richtext/richtext.lua
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ function M.create(text, font, settings)

-- measure width of a single space for current font
if not space_widths[font] then
space_widths[font] = gui.get_text_metrics(font, "_").width
space_widths[font] = gui.get_text_metrics(font, " _").width - gui.get_text_metrics(font, "_").width
end

-- get metrics of node
Expand Down

0 comments on commit fb92047

Please sign in to comment.