From 7e3df3640762af87e6617edab7d6c9ceeefdbb86 Mon Sep 17 00:00:00 2001 From: Joshua Simmons Date: Wed, 1 May 2024 20:54:54 +0200 Subject: [PATCH] shark: Only write two lines of text --- title/shark/src/main.rs | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/title/shark/src/main.rs b/title/shark/src/main.rs index 9f17fc7..00532d2 100644 --- a/title/shark/src/main.rs +++ b/title/shark/src/main.rs @@ -578,11 +578,11 @@ pub fn main() { primitive_instances.clear(); primitive_vertices.clear(); - for line in 0.. { + for line in 0..2 { let (font_family, font_size_px, text) = if line & 1 == 0 { - (FontFamily::RobotoRegular, 14.0, line0) + (FontFamily::RobotoRegular, 22.0, line0) } else { - (FontFamily::NotoSansJapanese, 14.0, line1) + (FontFamily::NotoSansJapanese, 22.0, line1) }; let font = fonts.font(font_family); @@ -591,10 +591,6 @@ pub fn main() { x = 0.0; y += (font.ascent() - font.descent() + font.line_gap()) * scale; - if y > height as f32 { - break; - } - font_size_str.clear(); write!(&mut font_size_str, "{font_size_px}: ").unwrap(); -- 2.49.0