From b71c47cbdbee30428681ea98aa8f0e808b1da558 Mon Sep 17 00:00:00 2001 From: qiudejia Date: Sat, 11 Oct 2025 16:33:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AE=BD=E5=BA=A6=E7=B3=BB?= =?UTF-8?q?=E6=95=B0=E7=9A=84=E8=8E=B7=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/qelmt/dynamictext.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/qelmt/dynamictext.rs b/src/qelmt/dynamictext.rs index 2b1b70b..c258de1 100644 --- a/src/qelmt/dynamictext.rs +++ b/src/qelmt/dynamictext.rs @@ -263,7 +263,7 @@ impl<'a> DTextBuilder<'a> { 0.0, // as Placeholder: no "reference_rectangle_width" with Text!!! txt.second_alignment_point.x, -txt.second_alignment_point.y, - txt.width_factor, + txt.relative_x_scale_factor, )}, TextEntity::MText(mtxt) => { // 计算实际的旋转角度,优先使用x_axis_direction向量 @@ -328,7 +328,7 @@ impl<'a> DTextBuilder<'a> { 0.0, // as Placeholder: not need to check if Attrib has something similar attrib.second_alignment_point.x, -attrib.second_alignment_point.y, - attrib.width_factor, + attrib.relative_x_scale_factor, ) }, }; @@ -399,8 +399,8 @@ impl<'a> DTextBuilder<'a> { text_from: "UserText".into(), frame: false, text_height, - text_width, - relative_x_scale_factor, + text_width: -1.0, + relative_x_scale_factor,//宽度系数 color: self.color.unwrap_or(HexColor::BLACK), text: value,