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:
Hakan Seven 2026-06-03 17:43:12 +03:00
commit 52850947d2
5 changed files with 131 additions and 39 deletions

View file

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