diff --git a/src/qelmt/dynamictext.rs b/src/qelmt/dynamictext.rs index 8b15f22..af0b127 100644 --- a/src/qelmt/dynamictext.rs +++ b/src/qelmt/dynamictext.rs @@ -173,6 +173,7 @@ impl ScaleEntity for DynamicText { self.align_x *= fact_x; self.align_y *= fact_y; self.font.scale(fact_y); + self.text_height = self.text_height * fact_y; } fn left_bound(&self) -> f64 { @@ -365,7 +366,8 @@ impl<'a> DTextBuilder<'a> { dbg!(&self.text);*/ let value = super::strip_mtext_control_sequences(&value); // 将 DXF 中读取到的 text_height 放大 2 倍(用户要求) - let text_height = text_height * 2.0; + // let text_height = text_height * 2.0; + let text_height = text_height; let text_width = if reference_rectangle_width > 0.0 { reference_rectangle_width } else { diff --git a/src/qelmt/mod.rs b/src/qelmt/mod.rs index a2da2ea..eb92216 100644 --- a/src/qelmt/mod.rs +++ b/src/qelmt/mod.rs @@ -295,7 +295,7 @@ impl Definition { Units::Inches => 50.8, Units::Feet => 609.6, Units::Miles | Units::USSurveyMile => 3_218_694.437_4, - Units::Millimeters => 2.0, + Units::Millimeters => 3.78, Units::Centimeters => 20.0, Units::Meters => 2_000.0, Units::Kilometers => 2_000_000.0,