|
|
|
|
@ -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 {
|
|
|
|
|
|