microbit_text/font/
pendolino.rs

1/*
2The MIT License (MIT)
3
4Copyright (c) 2016 British Broadcasting Corporation.
5This software is provided by Lancaster University by arrangement with the BBC.
6
7Permission is hereby granted, free of charge, to any person obtaining a
8copy of this software and associated documentation files (the "Software"),
9to deal in the Software without restriction, including without limitation
10the rights to use, copy, modify, merge, publish, distribute, sublicense,
11and/or sell copies of the Software, and to permit persons to whom the
12Software is furnished to do so, subject to the following conditions:
13
14The above copyright notice and this permission notice shall be included in
15all copies or substantial portions of the Software.
16
17THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
20THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23DEALINGS IN THE SOFTWARE.
24*/
25
26use crate::image::BitImage;
27use crate::font::{font_entry, PRINTABLE_COUNT};
28
29// From lancaster-university/microbit-dal source/core/MicroBitFont.cpp
30// as of v2.1.1
31pub(super) const PENDOLINO3: [BitImage; PRINTABLE_COUNT] = [
32    font_entry([0x0, 0x0, 0x0, 0x0, 0x0]),
33    font_entry([0x8, 0x8, 0x8, 0x0, 0x8]),
34    font_entry([0xa, 0x4a, 0x40, 0x0, 0x0]),
35    font_entry([0xa, 0x5f, 0xea, 0x5f, 0xea]),
36    font_entry([0xe, 0xd9, 0x2e, 0xd3, 0x6e]),
37    font_entry([0x19, 0x32, 0x44, 0x89, 0x33]),
38    font_entry([0xc, 0x92, 0x4c, 0x92, 0x4d]),
39    font_entry([0x8, 0x8, 0x0, 0x0, 0x0]),
40    font_entry([0x4, 0x88, 0x8, 0x8, 0x4]),
41    font_entry([0x8, 0x4, 0x84, 0x84, 0x88]),
42    font_entry([0x0, 0xa, 0x44, 0x8a, 0x40]),
43    font_entry([0x0, 0x4, 0x8e, 0xc4, 0x80]),
44    font_entry([0x0, 0x0, 0x0, 0x4, 0x88]),
45    font_entry([0x0, 0x0, 0xe, 0xc0, 0x0]),
46    font_entry([0x0, 0x0, 0x0, 0x8, 0x0]),
47    font_entry([0x1, 0x22, 0x44, 0x88, 0x10]),
48    font_entry([0xc, 0x92, 0x52, 0x52, 0x4c]),
49    font_entry([0x4, 0x8c, 0x84, 0x84, 0x8e]),
50    font_entry([0x1c, 0x82, 0x4c, 0x90, 0x1e]),
51    font_entry([0x1e, 0xc2, 0x44, 0x92, 0x4c]),
52    font_entry([0x6, 0xca, 0x52, 0x5f, 0xe2]),
53    font_entry([0x1f, 0xf0, 0x1e, 0xc1, 0x3e]),
54    font_entry([0x2, 0x44, 0x8e, 0xd1, 0x2e]),
55    font_entry([0x1f, 0xe2, 0x44, 0x88, 0x10]),
56    font_entry([0xe, 0xd1, 0x2e, 0xd1, 0x2e]),
57    font_entry([0xe, 0xd1, 0x2e, 0xc4, 0x88]),
58    font_entry([0x0, 0x8, 0x0, 0x8, 0x0]),
59    font_entry([0x0, 0x4, 0x80, 0x4, 0x88]),
60    font_entry([0x2, 0x44, 0x88, 0x4, 0x82]),
61    font_entry([0x0, 0xe, 0xc0, 0xe, 0xc0]),
62    font_entry([0x8, 0x4, 0x82, 0x44, 0x88]),
63    font_entry([0xe, 0xd1, 0x26, 0xc0, 0x4]),
64    font_entry([0xe, 0xd1, 0x35, 0xb3, 0x6c]),
65    font_entry([0xc, 0x92, 0x5e, 0xd2, 0x52]),
66    font_entry([0x1c, 0x92, 0x5c, 0x92, 0x5c]),
67    font_entry([0xe, 0xd0, 0x10, 0x10, 0xe]),
68    font_entry([0x1c, 0x92, 0x52, 0x52, 0x5c]),
69    font_entry([0x1e, 0xd0, 0x1c, 0x90, 0x1e]),
70    font_entry([0x1e, 0xd0, 0x1c, 0x90, 0x10]),
71    font_entry([0xe, 0xd0, 0x13, 0x71, 0x2e]),
72    font_entry([0x12, 0x52, 0x5e, 0xd2, 0x52]),
73    font_entry([0x1c, 0x88, 0x8, 0x8, 0x1c]),
74    font_entry([0x1f, 0xe2, 0x42, 0x52, 0x4c]),
75    font_entry([0x12, 0x54, 0x98, 0x14, 0x92]),
76    font_entry([0x10, 0x10, 0x10, 0x10, 0x1e]),
77    font_entry([0x11, 0x3b, 0x75, 0xb1, 0x31]),
78    font_entry([0x11, 0x39, 0x35, 0xb3, 0x71]),
79    font_entry([0xc, 0x92, 0x52, 0x52, 0x4c]),
80    font_entry([0x1c, 0x92, 0x5c, 0x90, 0x10]),
81    font_entry([0xc, 0x92, 0x52, 0x4c, 0x86]),
82    font_entry([0x1c, 0x92, 0x5c, 0x92, 0x51]),
83    font_entry([0xe, 0xd0, 0xc, 0x82, 0x5c]),
84    font_entry([0x1f, 0xe4, 0x84, 0x84, 0x84]),
85    font_entry([0x12, 0x52, 0x52, 0x52, 0x4c]),
86    font_entry([0x11, 0x31, 0x31, 0x2a, 0x44]),
87    font_entry([0x11, 0x31, 0x35, 0xbb, 0x71]),
88    font_entry([0x12, 0x52, 0x4c, 0x92, 0x52]),
89    font_entry([0x11, 0x2a, 0x44, 0x84, 0x84]),
90    font_entry([0x1e, 0xc4, 0x88, 0x10, 0x1e]),
91    font_entry([0xe, 0xc8, 0x8, 0x8, 0xe]),
92    font_entry([0x10, 0x8, 0x4, 0x82, 0x41]),
93    font_entry([0xe, 0xc2, 0x42, 0x42, 0x4e]),
94    font_entry([0x4, 0x8a, 0x40, 0x0, 0x0]),
95    font_entry([0x0, 0x0, 0x0, 0x0, 0x1f]),
96    font_entry([0x8, 0x4, 0x80, 0x0, 0x0]),
97    font_entry([0x0, 0xe, 0xd2, 0x52, 0x4f]),
98    font_entry([0x10, 0x10, 0x1c, 0x92, 0x5c]),
99    font_entry([0x0, 0xe, 0xd0, 0x10, 0xe]),
100    font_entry([0x2, 0x42, 0x4e, 0xd2, 0x4e]),
101    font_entry([0xc, 0x92, 0x5c, 0x90, 0xe]),
102    font_entry([0x6, 0xc8, 0x1c, 0x88, 0x8]),
103    font_entry([0xe, 0xd2, 0x4e, 0xc2, 0x4c]),
104    font_entry([0x10, 0x10, 0x1c, 0x92, 0x52]),
105    font_entry([0x8, 0x0, 0x8, 0x8, 0x8]),
106    font_entry([0x2, 0x40, 0x2, 0x42, 0x4c]),
107    font_entry([0x10, 0x14, 0x98, 0x14, 0x92]),
108    font_entry([0x8, 0x8, 0x8, 0x8, 0x6]),
109    font_entry([0x0, 0x1b, 0x75, 0xb1, 0x31]),
110    font_entry([0x0, 0x1c, 0x92, 0x52, 0x52]),
111    font_entry([0x0, 0xc, 0x92, 0x52, 0x4c]),
112    font_entry([0x0, 0x1c, 0x92, 0x5c, 0x90]),
113    font_entry([0x0, 0xe, 0xd2, 0x4e, 0xc2]),
114    font_entry([0x0, 0xe, 0xd0, 0x10, 0x10]),
115    font_entry([0x0, 0x6, 0xc8, 0x4, 0x98]),
116    font_entry([0x8, 0x8, 0xe, 0xc8, 0x7]),
117    font_entry([0x0, 0x12, 0x52, 0x52, 0x4f]),
118    font_entry([0x0, 0x11, 0x31, 0x2a, 0x44]),
119    font_entry([0x0, 0x11, 0x31, 0x35, 0xbb]),
120    font_entry([0x0, 0x12, 0x4c, 0x8c, 0x92]),
121    font_entry([0x0, 0x11, 0x2a, 0x44, 0x98]),
122    font_entry([0x0, 0x1e, 0xc4, 0x88, 0x1e]),
123    font_entry([0x6, 0xc4, 0x8c, 0x84, 0x86]),
124    font_entry([0x8, 0x8, 0x8, 0x8, 0x8]),
125    font_entry([0x18, 0x8, 0xc, 0x88, 0x18]),
126    font_entry([0x0, 0x0, 0xc, 0x83, 0x60]),
127];