Unexpected full ascii chars
Hello, I've just tested the full ascii chars feature.
I tried to display following characters:
\xe8 \xe9 \xea \xeb
This should result to the following display:
è é ê ë
Instead I got some unexpected greek letters
Hello, I've just understand that you used the DOS code page as the ascii extension, and not the Windows-1252 characters. It doesn't matter, I will code a little conversion routine. I only need latin characters, such a 'é', 'ê', 'à', etc. These characters are present in both charsets and a mapping is possible.
@sebastienroy Do the Windoes-1252 encoding of those character match the codepoints for them in UTF?
@FunMiles They might not as these fonts were generated using codepages, more specifically "Codepage 437 United States".
@Harbys, glad to hear from you. I am integrating your library inside a C++20 coroutine-based asynchronous library for the Raspberry Pi Pico. How did you generate the .h with the fonts? I have not played with text yet, but drawing lines is working. I think I'll contribute some line-drawing routines as well. I am going to get text running today hopefully. The code is not yet pushed on github but will be soon: https://github.com/FunMiles/PicoAsync
PS: I have added the code and a demo for a 128x32 display.
I generated font files from files like these
I wanted to create a repo with a python script I used, but can't find it. It was a crude simple script. If I find some spare time, I'll recreate a similar script and upload it
Hello,
I've try to map all the character I could map. Of course it was not possible for all of them. Here is the result: I hope it can help
| CodePage437 | Windows-1252 | ||||
|---|---|---|---|---|---|
| DEC | HEX | Description | DEC | HEX | |
| 128 | 80 | Ç | Upper case C with cedilla | 199 | C7 |
| 129 | 81 | ü | Lower case u with diaeresis | 252 | FC |
| 130 | 82 | é | Lower case e with acute | 233 | E9 |
| 131 | 83 | â | Lower case a with circumflex | 226 | E2 |
| 132 | 84 | ä | Lower case a with diaeresis | 228 | E4 |
| 133 | 85 | à | Lower case a with grave | 224 | E0 |
| 134 | 86 | å | Lower case a with ring above | 229 | E5 |
| 135 | 87 | ç | Lower case c with cedilla | 231 | E7 |
| 136 | 88 | ê | Lower case e with circumflex | 234 | EA |
| 137 | 89 | ë | Lower case e with diaeresis | 235 | EB |
| 138 | 8A | è | Lower case e with grave | 232 | E8 |
| 139 | 8B | ï | Lower case i with diaeresis | 239 | EF |
| 140 | 8C | î | Lower case i with circumflex | 238 | EE |
| 141 | 8D | ì | Lower case i with grave | 236 | EC |
| 142 | 8E | Ä | Upper case A with diaeresis | 196 | C4 |
| 143 | 8F | Å | Upper case A with ring above | 197 | C5 |
| 144 | 90 | É | Upper case E with acute | 201 | C9 |
| 145 | 91 | æ | Lower case ae | 230 | E6 |
| 146 | 92 | Æ | Upper case AE | 198 | C6 |
| 147 | 93 | ô | Lower case o with circumflex | 244 | F4 |
| 148 | 94 | ö | Lower case o with diaeresis | 246 | F6 |
| 149 | 95 | ò | Lower case o with grave | 242 | F2 |
| 150 | 96 | û | Lower case u with circumflex | 251 | FB |
| 151 | 97 | ù | Lower case u with grave | 249 | F9 |
| 152 | 98 | ÿ | Lower case y with diaeresis | 255 | FF |
| 153 | 99 | Ö | Upper case O with diaeresis | 214 | D6 |
| 154 | 9A | Ü | Upper case U with diaeresis | 220 | DC |
| 155 | 9B | ¢ | Cent sign | 162 | A2 |
| 156 | 9C | £ | Pound sign | 163 | A3 |
| 157 | 9D | ¥ | Yen sign | 165 | A5 |
| 158 | 9E | Peseta sign | |||
| 159 | 9F | ƒ | Lower case f with hook | 131 | 83 |
| 160 | A0 | á | Lower case a with acute | 225 | E1 |
| 161 | A1 | í | Lower case i with acute | 237 | ED |
| 162 | A2 | ó | Lower case o with acute | 243 | F3 |
| 163 | A3 | ú | Lower case u with acute | 250 | FA |
| 164 | A4 | ñ | Lower case n with tilde | 241 | F1 |
| 165 | A5 | Ñ | Upper case N with tilde | 209 | D1 |
| 166 | A6 | ª | Feminine ordinal indicator | 170 | AA |
| 167 | A7 | º | Masculine ordinal indicator | 186 | BA |
| 168 | A8 | ¿ | Inverted question mark | 191 | BF |
| 169 | A9 | Reversed not sign | |||
| 170 | AA | ¬ | Not sign | 172 | AC |
| 171 | AB | ½ | Vulgar fraction one half | 189 | BD |
| 172 | AC | ¼ | Vulgar fraction one quarter | 188 | BC |
| 173 | AD | ¡ | Inverted exclamation mark | 161 | A1 |
| 174 | AE | « | Left-pointing double angle quotation mark | 171 | AB |
| 175 | AF | » | Right-pointing double angle quotation mark | 187 | BB |
| 176 | B0 | Light shade | |||
| 177 | B1 | Medium shade | |||
| 178 | B2 | Dark shade | |||
| 179 | B3 | Box drawings light vertical | |||
| 180 | B4 | Box drawings light vertical and left | |||
| 181 | B5 | Box drawings vertical single and left double | |||
| 182 | B6 | Box drawings vertical double and left single | |||
| 183 | B7 | Box drawings down double and left single | |||
| 184 | B8 | Box drawings down single and left double | |||
| 185 | B9 | Box drawings double vertical and left | |||
| 186 | BA | Box drawings double vertical | |||
| 187 | BB | Box drawings double down and left | |||
| 188 | BC | Box drawings double up and left | |||
| 189 | BD | Box drawings up double and left single | |||
| 190 | BE | Box drawings up single and left double | |||
| 191 | BF | Box drawings light down and left | |||
| 192 | C0 | Box drawings light up and right | |||
| 193 | C1 | Box drawings light up and horizontal | |||
| 194 | C2 | Box drawings light down and horizontal | |||
| 195 | C3 | Box drawings light vertical and right | |||
| 196 | C4 | Box drawings light horizontal | |||
| 197 | C5 | Box drawings light vertical and horizontal | |||
| 198 | C6 | Box drawings vertical single and right double | |||
| 199 | C7 | Box drawings vertical double and right single | |||
| 200 | C8 | Box drawings double up and right | |||
| 201 | C9 | Box drawings double down and right | |||
| 202 | CA | Box drawings double up and horizontal | |||
| 203 | CB | Box drawings double down and horizontal | |||
| 204 | CC | Box drawings double vertical and right | |||
| 205 | CD | Box drawings double horizontal | |||
| 206 | CE | Box drawings double vertical and horizontal | |||
| 207 | CF | Box drawings up single and horizontal double | |||
| 208 | D0 | Box drawings up double and horizontal single | |||
| 209 | D1 | Box drawings down single and horizontal double | |||
| 210 | D2 | Box drawings down double and horizontal single | |||
| 211 | D3 | Box drawings up double and right single | |||
| 212 | D4 | Box drawings up single and right double | |||
| 213 | D5 | Box drawings down single and right double | |||
| 214 | D6 | Box drawings down double and right single | |||
| 215 | D7 | Box drawings vertical double and horizontal single | |||
| 216 | D8 | Box drawings vertical single and horizontal double | |||
| 217 | D9 | Box drawings light up and left | |||
| 218 | DA | Box drawings light down and right | |||
| 219 | DB | Full block | |||
| 220 | DC | Lower half block | |||
| 221 | DD | Left half block | |||
| 222 | DE | Right half block | |||
| 223 | DF | Upper half block | |||
| 224 | E0 | Greek lower case alpha | |||
| 225 | E1 | ß | Lower case sharp s | 223 | DF |
| 226 | E2 | Greek upper case letter gamma | |||
| 227 | E3 | Greek lower case pi | |||
| 228 | E4 | Greek upper case letter sigma | |||
| 229 | E5 | Greek lower case sigma | |||
| 230 | E6 | µ | Micro sign | 181 | B5 |
| 231 | E7 | Greek lower case tau | |||
| 232 | E8 | Greek upper case letter phi | |||
| 233 | E9 | Greek upper case letter theta | |||
| 234 | EA | Greek upper case letter omega | |||
| 235 | EB | Greek lower case delta | |||
| 236 | EC | Infinity | |||
| 237 | ED | Greek lower case phi | |||
| 238 | EE | Greek lower case epsilon | |||
| 239 | EF | Intersection | |||
| 240 | F0 | Identical to | |||
| 241 | F1 | ± | Plus-minus sign | 177 | B1 |
| 242 | F2 | Greater-than or equal to | |||
| 243 | F3 | Less-than or equal to | |||
| 244 | F4 | Top half integral | |||
| 245 | F5 | Bottom half integral | |||
| 246 | F6 | ÷ | Division sign | 247 | F7 |
| 247 | F7 | Almost equal to | |||
| 248 | F8 | ° | Degree sign | 176 | B0 |
| 249 | F9 | • | Bullet operator | 149 | 95 |
| 250 | FA | · | Middle dot | 183 | B7 |
| 251 | FB | Square root | |||
| 252 | FC | Superscript lower case n | |||
| 253 | FD | ² | Superscript two | 178 | B2 |
| 254 | FE | Black square | |||
| 255 | FF | No-break space | 160 | A0 |