diff options
Diffstat (limited to '')
| -rw-r--r-- | build.rs | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -26,8 +26,8 @@ fn main() -> Result<(), Box<dyn std::error::Error>> { | |||
| 26 | return Err("not a PSF2 font".into()); | 26 | return Err("not a PSF2 font".into()); |
| 27 | } | 27 | } |
| 28 | 28 | ||
| 29 | let hdr_size = u32::from_le_bytes(raw[8..12].try_into()?) as usize; | 29 | let hdr_size = u32::from_le_bytes(raw[8..12].try_into()?) as usize; |
| 30 | let num_glyphs = u32::from_le_bytes(raw[16..20].try_into()?) as usize; | 30 | let num_glyphs = u32::from_le_bytes(raw[16..20].try_into()?) as usize; |
| 31 | let bytes_per_glyph = u32::from_le_bytes(raw[20..24].try_into()?) as usize; | 31 | let bytes_per_glyph = u32::from_le_bytes(raw[20..24].try_into()?) as usize; |
| 32 | 32 | ||
| 33 | if num_glyphs != 256 { | 33 | if num_glyphs != 256 { |
