Browse Source

textium: render_atlas example should render at a higher scaling

master
Erin 8 years ago
parent
commit
4fe8b6002a
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      textium/examples/render_atlas.rs

+ 1
- 1
textium/examples/render_atlas.rs View File

@ -23,7 +23,7 @@ fn main() {
let font = textium::Font::new(font);
let chrs = ASCII.iter().cloned().chain(ASCII.iter().cloned());
let (_, bitmap, _) = font.make_atlas(chrs, 20.0, 1, 256, 128);
let (_, bitmap, _) = font.make_atlas(chrs, 64.0, 1, 256, 128);
let img: ImageBuffer<Luma<u8>, _> = ImageBuffer::from_raw(bitmap.width() as u32, bitmap.height() as u32, bitmap.raw()).unwrap();
let _ = img.save(&Path::new("atlas.png"));


Loading…
Cancel
Save