VectorCraft: An open-source, vector art tool written by scratch in pure Rust
Type: rustfmt the merged vertical-glyph rotation (#343 + #350)
Brandon Thomas440174d563d3
diff --git a/crates/text/src/layout.rs b/crates/text/src/layout.rsindex 4216b5452..b028756b4 100644--- a/crates/text/src/layout.rs+++ b/crates/text/src/layout.rs@@ -76,7 +76,10 @@ impl Ctx<'_> {// after the cell, and must not push the glyph off the centre line).let em = self.style_at(g.byte).size;let cell = if g.adv > 0.0 { upright_cell(g) } else { advance };- m = Affine::rotate_about(-std::f64::consts::FRAC_PI_2, Point::new(origin.x + cell * 0.5 - g.lead, origin.y - upright_centre(g, cell, em))) * m;+ m = Affine::rotate_about(+ -std::f64::consts::FRAC_PI_2,+ Point::new(origin.x + cell * 0.5 - g.lead, origin.y - upright_centre(g, cell, em)),+ ) * m;}// Control characters (tabs) and soft hyphens draw nothing (fonts map them to .notdef).let outline = if src.elements().is_empty() || g.is_soft_hyphen() || g.ch.is_control() {