Merge branch 'master' into develop

This commit is contained in:
Insality
2025-05-28 23:28:31 +03:00
4 changed files with 7 additions and 2 deletions

View File

@@ -473,6 +473,9 @@ function M.get_text_metrics_from_node(text_node)
options.tracking = gui.get_tracking(text_node)
options.line_break = gui.get_line_break(text_node)
options.width = 0
options.leading = 0
-- Gather other options only if it used in node
if options.line_break then
options.width = gui.get_size(text_node).x