Improve fallback and add fallback test
This commit is contained in:
parent
a56a9afa48
commit
4d620c3d30
3 changed files with 115 additions and 97 deletions
|
|
@ -75,7 +75,6 @@ impl<'a> FontLayoutLine<'a> {
|
|||
let mut i = 0;
|
||||
for off_y in 0..image.placement.height as i32 {
|
||||
for off_x in 0..image.placement.width as i32 {
|
||||
println!("{}, {}, {:x?}", off_x, off_y, &image.data[i..i + 4]);
|
||||
let color =
|
||||
(image.data[i + 3] as u32) << 24 |
|
||||
(image.data[i] as u32) << 16 |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue