Skip to content

Commit e144569

Browse files
committed
Set unscaled text size
Fixes #80
1 parent 4ba32ac commit e144569

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

richtext/richtext.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ local function create_text_node(word)
291291

292292
local metrics = get_text_metrics(word)
293293
gui.set_size_mode(node, gui.SIZE_MODE_MANUAL)
294-
gui.set_size(node, vmath.vector3(metrics.width, metrics.height, 0))
294+
gui.set_size(node, vmath.vector3(metrics.width / word.size, metrics.height / word.size, 0))
295295

296296
word.metrics = metrics
297297
end

0 commit comments

Comments
 (0)