feat(textstyle): full Text Style editor — big/TT font, fixed height, flags, annotative
Expands the Text Style manager beyond font/width/oblique: big-font and TrueType font fields, fixed text height, Backward / Upside-down flags, and an Annotative toggle (applied live). Bumps acadrust for the annotative field. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
8b3d083789
commit
52850947d2
5 changed files with 131 additions and 39 deletions
|
|
@ -65,13 +65,26 @@ impl OpenCADStudio {
|
|||
.iter()
|
||||
.map(|s| s.name.clone())
|
||||
.collect();
|
||||
return crate::ui::textstyle::view_window(
|
||||
let (backward, upside_down, annotative) = tab
|
||||
.scene
|
||||
.document
|
||||
.text_styles
|
||||
.get(&self.textstyle_selected)
|
||||
.map(|s| (s.flags.backward, s.flags.upside_down, s.annotative))
|
||||
.unwrap_or((false, false, false));
|
||||
return crate::ui::textstyle::view_window(crate::ui::textstyle::TextStyleView {
|
||||
styles,
|
||||
&self.textstyle_selected,
|
||||
&self.textstyle_font,
|
||||
&self.textstyle_width,
|
||||
&self.textstyle_oblique,
|
||||
);
|
||||
selected: &self.textstyle_selected,
|
||||
font_buf: &self.textstyle_font,
|
||||
width_buf: &self.textstyle_width,
|
||||
oblique_buf: &self.textstyle_oblique,
|
||||
height_buf: &self.textstyle_height,
|
||||
bigfont_buf: &self.textstyle_bigfont,
|
||||
ttf_buf: &self.textstyle_ttf,
|
||||
backward,
|
||||
upside_down,
|
||||
annotative,
|
||||
});
|
||||
}
|
||||
if Some(window_id) == self.tablestyle_window {
|
||||
use acadrust::objects::ObjectType;
|
||||
|
|
|
|||
Loading…
Reference in a new issue