small software-rendered rust tty
Diffstat (limited to 'src/render.rs')
| -rw-r--r-- | src/render.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/render.rs b/src/render.rs index 1a70232..1ae2793 100644 --- a/src/render.rs +++ b/src/render.rs @@ -164,13 +164,13 @@ fn t() { FontRef::from_index(&include_bytes!("../cjk.ttc")[..], 0).unwrap(); dbg!(f.attributes()); - let m = f.metrics(&[f.charmap().map('行') as _]); + // let m = f.metrics(&[f.charmap().map('行') as _]); let ppem = 30.0; let d = dims(&FONT, ppem); let sz = d.0; let mut grid = Image::<_, 4>::alloc(2000, 500); - unsafe { grid.chunked_mut().for_each(|x| *x = [0, 0, 0, 255]) }; + grid.chunked_mut().for_each(|x| *x = [0, 0, 0, 255]); for (letter, i) in "素早い茶色のキツネは怠け者の犬を飛び越えた" .chars() .zip(0..) |