Mikrocontroller und Digitale Elektronik
›
Thread
Font10x16[] ascii Tabelle
F
Frank
Gast
21.03.2016 19:57
#4516408
Hallo,
hat jemand für mich die ASCII Tabelle für das FONT10x16.
Möchte damit in einem WINAVR Code
diesen FONT ersetzen. 1 static unsigned char __attribute__ (( progmem )) const Font5x7 [] = {
2 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , // (space)
3 0x00 , 0x00 , 0x5F , 0x00 , 0x00 , // !
4 0x00 , 0x07 , 0x00 , 0x07 , 0x00 , // "
5 0x14 , 0x7F , 0x14 , 0x7F , 0x14 , // #
6 0x24 , 0x2A , 0x7F , 0x2A , 0x12 , // $
7 0x23 , 0x13 , 0x08 , 0x64 , 0x62 , // %
8 0x36 , 0x49 , 0x55 , 0x22 , 0x50 , // &
9 0x00 , 0x05 , 0x03 , 0x00 , 0x00 , // '
10 0x00 , 0x1C , 0x22 , 0x41 , 0x00 , // (
11 0x00 , 0x41 , 0x22 , 0x1C , 0x00 , // )
12 0x08 , 0x2A , 0x1C , 0x2A , 0x08 , // *
13 0x08 , 0x08 , 0x3E , 0x08 , 0x08 , // +
14 0x00 , 0x50 , 0x30 , 0x00 , 0x00 , // ,
15 0x08 , 0x08 , 0x08 , 0x08 , 0x08 , // -
16 0x00 , 0x60 , 0x60 , 0x00 , 0x00 , // .
17 0x20 , 0x10 , 0x08 , 0x04 , 0x02 , // /
18 0x3E , 0x51 , 0x49 , 0x45 , 0x3E , // 0
19 0x00 , 0x42 , 0x7F , 0x40 , 0x00 , // 1
20 0x42 , 0x61 , 0x51 , 0x49 , 0x46 , // 2
21 0x21 , 0x41 , 0x45 , 0x4B , 0x31 , // 3
22 0x18 , 0x14 , 0x12 , 0x7F , 0x10 , // 4
23 0x27 , 0x45 , 0x45 , 0x45 , 0x39 , // 5
24 0x3C , 0x4A , 0x49 , 0x49 , 0x30 , // 6
25 0x01 , 0x71 , 0x09 , 0x05 , 0x03 , // 7
26 0x36 , 0x49 , 0x49 , 0x49 , 0x36 , // 8
27 0x06 , 0x49 , 0x49 , 0x29 , 0x1E , // 9
28 0x00 , 0x36 , 0x36 , 0x00 , 0x00 , // :
29 0x00 , 0x56 , 0x36 , 0x00 , 0x00 , // ;
30 0x00 , 0x08 , 0x14 , 0x22 , 0x41 , // <
31 0x14 , 0x14 , 0x14 , 0x14 , 0x14 , // =
32 0x41 , 0x22 , 0x14 , 0x08 , 0x00 , // >
33 0x02 , 0x01 , 0x51 , 0x09 , 0x06 , // ?
34 0x32 , 0x49 , 0x79 , 0x41 , 0x3E , // @
35 0x7E , 0x11 , 0x11 , 0x11 , 0x7E , // A
36 0x7F , 0x49 , 0x49 , 0x49 , 0x36 , // B
37 0x3E , 0x41 , 0x41 , 0x41 , 0x22 , // C
38 0x7F , 0x41 , 0x41 , 0x22 , 0x1C , // D
39 0x7F , 0x49 , 0x49 , 0x49 , 0x41 , // E
40 0x7F , 0x09 , 0x09 , 0x01 , 0x01 , // F
41 0x3E , 0x41 , 0x41 , 0x51 , 0x32 , // G
42 0x7F , 0x08 , 0x08 , 0x08 , 0x7F , // H
43 0x00 , 0x41 , 0x7F , 0x41 , 0x00 , // I
44 0x20 , 0x40 , 0x41 , 0x3F , 0x01 , // J
45 0x7F , 0x08 , 0x14 , 0x22 , 0x41 , // K
46 0x7F , 0x40 , 0x40 , 0x40 , 0x40 , // L
47 0x7F , 0x02 , 0x04 , 0x02 , 0x7F , // M
48 0x7F , 0x04 , 0x08 , 0x10 , 0x7F , // N
49 0x3E , 0x41 , 0x41 , 0x41 , 0x3E , // O
50 0x7F , 0x09 , 0x09 , 0x09 , 0x06 , // P
51 0x3E , 0x41 , 0x51 , 0x21 , 0x5E , // Q
52 0x7F , 0x09 , 0x19 , 0x29 , 0x46 , // R
53 0x46 , 0x49 , 0x49 , 0x49 , 0x31 , // S
54 0x01 , 0x01 , 0x7F , 0x01 , 0x01 , // T
55 0x3F , 0x40 , 0x40 , 0x40 , 0x3F , // U
56 0x1F , 0x20 , 0x40 , 0x20 , 0x1F , // V
57 0x7F , 0x20 , 0x18 , 0x20 , 0x7F , // W
58 0x63 , 0x14 , 0x08 , 0x14 , 0x63 , // X
59 0x03 , 0x04 , 0x78 , 0x04 , 0x03 , // Y
60 0x61 , 0x51 , 0x49 , 0x45 , 0x43 , // Z
61 0x00 , 0x00 , 0x7F , 0x41 , 0x41 , // [
62 0x02 , 0x04 , 0x08 , 0x10 , 0x20 , // "\"
63 0x41 , 0x41 , 0x7F , 0x00 , 0x00 , // ]
64 0x04 , 0x02 , 0x01 , 0x02 , 0x04 , // ^
65 0x40 , 0x40 , 0x40 , 0x40 , 0x40 , // _
66 0x00 , 0x01 , 0x02 , 0x04 , 0x00 , // `
67 0x20 , 0x54 , 0x54 , 0x54 , 0x78 , // a
68 0x7F , 0x48 , 0x44 , 0x44 , 0x38 , // b
69 0x38 , 0x44 , 0x44 , 0x44 , 0x20 , // c
70 0x38 , 0x44 , 0x44 , 0x48 , 0x7F , // d
71 0x38 , 0x54 , 0x54 , 0x54 , 0x18 , // e
72 0x08 , 0x7E , 0x09 , 0x01 , 0x02 , // f
73 0x08 , 0x14 , 0x54 , 0x54 , 0x3C , // g
74 0x7F , 0x08 , 0x04 , 0x04 , 0x78 , // h
75 0x00 , 0x44 , 0x7D , 0x40 , 0x00 , // i
76 0x20 , 0x40 , 0x44 , 0x3D , 0x00 , // j
77 0x00 , 0x7F , 0x10 , 0x28 , 0x44 , // k
78 0x00 , 0x41 , 0x7F , 0x40 , 0x00 , // l
79 0x7C , 0x04 , 0x18 , 0x04 , 0x78 , // m
80 0x7C , 0x08 , 0x04 , 0x04 , 0x78 , // n
81 0x38 , 0x44 , 0x44 , 0x44 , 0x38 , // o
82 0x7C , 0x14 , 0x14 , 0x14 , 0x08 , // p
83 0x08 , 0x14 , 0x14 , 0x18 , 0x7C , // q
84 0x7C , 0x08 , 0x04 , 0x04 , 0x08 , // r
85 0x48 , 0x54 , 0x54 , 0x54 , 0x20 , // s
86 0x04 , 0x3F , 0x44 , 0x40 , 0x20 , // t
87 0x3C , 0x40 , 0x40 , 0x20 , 0x7C , // u
88 0x1C , 0x20 , 0x40 , 0x20 , 0x1C , // v
89 0x3C , 0x40 , 0x30 , 0x40 , 0x3C , // w
90 0x44 , 0x28 , 0x10 , 0x28 , 0x44 , // x
91 0x0C , 0x50 , 0x50 , 0x50 , 0x3C , // y
92 0x44 , 0x64 , 0x54 , 0x4C , 0x44 , // z
93 0x00 , 0x08 , 0x36 , 0x41 , 0x00 , // {
94 0x00 , 0x00 , 0x7F , 0x00 , 0x00 , // |
95 0x00 , 0x41 , 0x36 , 0x08 , 0x00 , // }
96 0x08 , 0x08 , 0x2A , 0x1C , 0x08 , // ->
97 0x08 , 0x1C , 0x2A , 0x08 , 0x08 // <-
98 };
G
Georg
Gast
21.03.2016 20:56
#4516490
Frank schrieb:
> für das FONT10x16
Woher weisst du, dass es einen solchen Font gibt?
Georg
Frank schrieb:
> ASCII Tabelle
Die ist für alle Fonts identisch.
F
Frank
Gast
21.03.2016 21:33
#4516540
Gut dann formuliere ich meine Frage um.
Wie mache aus den 5 x 7 Pixel großen Buchstaben und Zahlen größere
Buchstaben und Zahlen z.B. eben 10 x 16 Pixel?
Also z.B. doppelt so groß (ca.)
Gruss
N
nocheinGast
Gast
21.03.2016 21:38
#4516548
Hier stehen beispielsweise ein paar zur Auswahl:
https://github.com/torvalds/linux/tree/master/lib/fonts
Ggf. die Lizenz beachten.
MS
Matthias S.
(mschoeldgen)
(Firma: matzetronics)
21.03.2016 21:41
#4516551
Debei ändert sich aber deine ganze Tabelle und die 'zeichne einen
Buchstaben' Routine, da der jetzige 5*8 Font natürlich anders adressiert
wird als ein 10*16.
http://www.igfd.org/?q=lcd+font+10x16
Der erste Link geht auf nen Thread mit allen möglichen größen für LCDs.
Musst halt nur noch die unnötigen Zeichen löschen.
Gruß JackFrost
Buddel doch mal ein uralt DOS aus. Damals (vor der Erfindung des
Vektorfonts) wurden viele Zeichensätze in sogenannten Fixed-Fonts
verwendet und auch mitgeliefert. Auch viele Druckerhersteller dieser
Zeit hatten ihre eigenen Fonts. War damals ein echt nerviges
Kuddel-muddel.
Allerdings kann es sein, das das eine oder andere - oder beide Rechte -
noch nicht verloschen sind;-)
Privat wohl kein Problem, kommerziell eventuell Kamikaze.
Möglicherweise gibt es auch im Bereich von Free-DOS noch etwas zu holen.
G
Georg
Gast
21.03.2016 22:22
#4516609
Frank schrieb:
> Wie mache aus den 5 x 7 Pixel großen Buchstaben und Zahlen größere
> Buchstaben und Zahlen z.B. eben 10 x 16 Pixel?
Das ist zwar einfach, du kannst die Tabelle lassen wie sie ist und nur
für die Ausgabe alle Pixel verdoppeln (in beide Richtungen natürlich),
aber das ist eine ziemlich schlechte Idee: das Ergebnis ist grausam
treppenförmig. Ein Font mit 10 x 16 Pixeln muss komplett neu designt
werden, Pixel für Pixel, oder man lässt es gleich bleiben.
Georg
F
Frank
Gast
22.03.2016 06:00
#4516783
Natürlich die dadurch entstehenden Lücken füllen....
Antwort schreiben
Bitte melde dich an, um einen Beitrag zu schreiben.
Noch kein Account?
Die Registrierung ist kostenlos und dauert nur eine Minute.
Jetzt registrieren