From d0067e5496ed02b3c8bafcddcf4ae4f338d8bb05 Mon Sep 17 00:00:00 2001 From: Ivan Polovyi Date: Sun, 18 May 2025 23:33:40 +0300 Subject: [PATCH] Reset width and leading of the reusable table TEXT_METRICS_OPTIONS by default --- druid/helper.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/druid/helper.lua b/druid/helper.lua index ab3109a..c38faca 100644 --- a/druid/helper.lua +++ b/druid/helper.lua @@ -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