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