From a79351e24970812c15e6d184136a2382e1cc3767 Mon Sep 17 00:00:00 2001 From: Brandon Thomas Date: Wed, 7 Oct 2026 21:49:48 -0400 Subject: [PATCH] Glyph outlines: minimal boolean form (clippy 1.96 nonminimal_bool) Co-Authored-By: Claude Opus 5.5 --- crates/render/src/glyphs.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/render/src/glyphs.rs b/crates/render/src/glyphs.rs index 0d5e0bec4..0f8a210fd 100644 --- a/crates/render/src/glyphs.rs +++ b/crates/render/src/glyphs.rs @@ -64,7 +64,7 @@ pub fn text_line(db: &ScopedFonts<'_>, family: &str, style: &str, text: &str, he let boxed = glyphs.iter().any(|g| g.gid == 0) && db.missing_box(&face).is_some(); for g in &glyphs { let outline = db.outline(&face, g.gid); - if !outline.elements().is_empty() && !(boxed && g.gid == 0) { + if !(outline.elements().is_empty() || (boxed && g.gid == 0)) { ctx.set_transform(kurbo::Affine::translate((x + g.x_offset as f64 * k, baseline - g.y_offset as f64 * k)) * kurbo::Affine::scale(k)); ctx.fill_path(&outline); }