+#[cfg(feature = "image")]
+fn c64_font() -> (u32, u32, Vec<u8>) {
+ use image;
+ let image =
+ image::load_from_memory_with_format(&include_bytes!("c64-font.png")[..], image::PNG)
+ .unwrap()
+ .to_luma();
+ let (w, h) = image.dimensions();
+ (w, h, image.into_raw())
+}
+
+#[cfg(not(feature = "image"))]
+fn c64_font() -> (u32, u32, Vec<u8>) {
+ let pixels = &include_bytes!("c64-font.gray")[..];
+ (128, 128, Vec::from(pixels))
+}
+