From 6b15380d1aa21283cfe996281c0c7cb0883df924 Mon Sep 17 00:00:00 2001 From: Erin Date: Tue, 15 Aug 2017 16:59:03 -0500 Subject: [PATCH] rasterizer: remove debug, add reminder to fix space packing --- textium/src/rasterizer.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/textium/src/rasterizer.rs b/textium/src/rasterizer.rs index 1fae4b6..83529fc 100644 --- a/textium/src/rasterizer.rs +++ b/textium/src/rasterizer.rs @@ -41,7 +41,8 @@ impl<'a> Font<'a> { atlas.glyph_data.insert(chr, info); } else if chr == ' ' { // generate a blank pixel for the space texture - let (mut info, _) = self.rasterize_char(' ', scale).unwrap(); + // TODO: this is bad and should be fixed + let (mut info, _) = self.rasterize_char('-', scale).unwrap(); let empty_bitmap = Bitmap::new(1, 1); let r = packer.pack_resize(&empty_bitmap, |(w, h)| (w*2, h*2)); info.bounding_box = r; @@ -78,8 +79,6 @@ impl<'a> Font<'a> { out.set(x as usize, y as usize, (v * 255.0) as u8); }); - println!("{:?}", bbox); - let data = GlyphMetadata { scale: scale, bounding_box: Rect {