| 1 | // GENERATED CODE DO NOT MODIFY! |
| 2 | // Any manual changes to this file will be overwritten! |
| 3 | //! JIS_X0201 glyph subset. |
| 4 | //! |
| 5 | //! | Type | Screenshot | |
| 6 | //! |------|------------| |
| 7 | //! | `FONT_6X13` |  | |
| 8 | //! | `FONT_7X14` |  | |
| 9 | //! | `FONT_8X13` |  | |
| 10 | //! | `FONT_9X15` |  | |
| 11 | //! | `FONT_9X18` |  | |
| 12 | //! | `FONT_10X20` |  | |
| 13 | |
| 14 | /// 6x13 pixel monospace font. |
| 15 | pub const FONT_6X13: crate::mono_font::MonoFont = crate::mono_font::MonoFont { |
| 16 | image: crate::image::ImageRaw::new( |
| 17 | data:include_bytes!("../../../fonts/raw/jis_x0201/font_6x13.raw" ), |
| 18 | width:96, |
| 19 | ), |
| 20 | glyph_mapping: &crate::mono_font::mapping::JIS_X0201, |
| 21 | character_size: crate::geometry::Size::new(width:6, height:13), |
| 22 | character_spacing: 0, |
| 23 | baseline: 10, |
| 24 | underline: crate::mono_font::DecorationDimensions::new(offset:10 + 2, height:1), |
| 25 | strikethrough: crate::mono_font::DecorationDimensions::new(offset:13 / 2, height:1), |
| 26 | }; |
| 27 | |
| 28 | /// 7x14 pixel monospace font. |
| 29 | pub const FONT_7X14: crate::mono_font::MonoFont = crate::mono_font::MonoFont { |
| 30 | image: crate::image::ImageRaw::new( |
| 31 | data:include_bytes!("../../../fonts/raw/jis_x0201/font_7x14.raw" ), |
| 32 | width:112, |
| 33 | ), |
| 34 | glyph_mapping: &crate::mono_font::mapping::JIS_X0201, |
| 35 | character_size: crate::geometry::Size::new(width:7, height:14), |
| 36 | character_spacing: 0, |
| 37 | baseline: 11, |
| 38 | underline: crate::mono_font::DecorationDimensions::new(offset:11 + 2, height:1), |
| 39 | strikethrough: crate::mono_font::DecorationDimensions::new(offset:14 / 2, height:1), |
| 40 | }; |
| 41 | |
| 42 | /// 8x13 pixel monospace font. |
| 43 | pub const FONT_8X13: crate::mono_font::MonoFont = crate::mono_font::MonoFont { |
| 44 | image: crate::image::ImageRaw::new( |
| 45 | data:include_bytes!("../../../fonts/raw/jis_x0201/font_8x13.raw" ), |
| 46 | width:128, |
| 47 | ), |
| 48 | glyph_mapping: &crate::mono_font::mapping::JIS_X0201, |
| 49 | character_size: crate::geometry::Size::new(width:8, height:13), |
| 50 | character_spacing: 0, |
| 51 | baseline: 10, |
| 52 | underline: crate::mono_font::DecorationDimensions::new(offset:10 + 2, height:1), |
| 53 | strikethrough: crate::mono_font::DecorationDimensions::new(offset:13 / 2, height:1), |
| 54 | }; |
| 55 | |
| 56 | /// 9x15 pixel monospace font. |
| 57 | pub const FONT_9X15: crate::mono_font::MonoFont = crate::mono_font::MonoFont { |
| 58 | image: crate::image::ImageRaw::new( |
| 59 | data:include_bytes!("../../../fonts/raw/jis_x0201/font_9x15.raw" ), |
| 60 | width:144, |
| 61 | ), |
| 62 | glyph_mapping: &crate::mono_font::mapping::JIS_X0201, |
| 63 | character_size: crate::geometry::Size::new(width:9, height:15), |
| 64 | character_spacing: 0, |
| 65 | baseline: 11, |
| 66 | underline: crate::mono_font::DecorationDimensions::new(offset:11 + 2, height:1), |
| 67 | strikethrough: crate::mono_font::DecorationDimensions::new(offset:15 / 2, height:1), |
| 68 | }; |
| 69 | |
| 70 | /// 9x18 pixel monospace font. |
| 71 | pub const FONT_9X18: crate::mono_font::MonoFont = crate::mono_font::MonoFont { |
| 72 | image: crate::image::ImageRaw::new( |
| 73 | data:include_bytes!("../../../fonts/raw/jis_x0201/font_9x18.raw" ), |
| 74 | width:144, |
| 75 | ), |
| 76 | glyph_mapping: &crate::mono_font::mapping::JIS_X0201, |
| 77 | character_size: crate::geometry::Size::new(width:9, height:18), |
| 78 | character_spacing: 0, |
| 79 | baseline: 13, |
| 80 | underline: crate::mono_font::DecorationDimensions::new(offset:13 + 2, height:1), |
| 81 | strikethrough: crate::mono_font::DecorationDimensions::new(offset:18 / 2, height:1), |
| 82 | }; |
| 83 | |
| 84 | /// 10x20 pixel monospace font. |
| 85 | pub const FONT_10X20: crate::mono_font::MonoFont = crate::mono_font::MonoFont { |
| 86 | image: crate::image::ImageRaw::new( |
| 87 | data:include_bytes!("../../../fonts/raw/jis_x0201/font_10x20.raw" ), |
| 88 | width:160, |
| 89 | ), |
| 90 | glyph_mapping: &crate::mono_font::mapping::JIS_X0201, |
| 91 | character_size: crate::geometry::Size::new(width:10, height:20), |
| 92 | character_spacing: 0, |
| 93 | baseline: 15, |
| 94 | underline: crate::mono_font::DecorationDimensions::new(offset:15 + 2, height:1), |
| 95 | strikethrough: crate::mono_font::DecorationDimensions::new(offset:20 / 2, height:1), |
| 96 | }; |
| 97 | |