-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuntitled.c
1103 lines (1014 loc) · 40.3 KB
/
untitled.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*******************************************************************************
* *
* This font definition file is generated by FontGen v3.0.1 - Unicode Grayscale +Bin *
* by Bahri Okuroglu - fontgen@dreamsware.info *
* http://dreamsware.info *
* *
* Make sure it is legal to use installed fonts on your PC for this conversion *
* *
* Font definition for Times New Roman 8 *
* bold: y *
* italic: n *
* underline: n *
* strikeout: n *
* direction: 0 *
* compact vertical: n *
* compact horizontal: y *
* flip X: n *
* flip Y: n *
* 1-bit grayscale (color=~pixel>>7) *
* Current code page: windows-1252: ANSI Latin 1; Western European (Windows) *
* Dots per inch: 96 *
* *
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 'AS IS' *
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, *
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR *
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR *
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, *
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, *
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; *
* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, *
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR *
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF *
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE *
*******************************************************************************/
#include "fontgen.h"
#include "Times_New_Roman_8_n_bnnn_0_nh.h"
const fuint8 font_Times_New_Roman_8_n_bnnn_0_nh_width_table[];
const fuint8 font_Times_New_Roman_8_n_bnnn_0_nh_black_width_table[];
const fint8 font_Times_New_Roman_8_n_bnnn_0_nh_origin_x_table[];
const fuint8 font_Times_New_Roman_8_n_bnnn_0_nh_glyph_table[];
#ifdef FONTGEN_USE_MAPPING_TABLE
const fuint8 font_Times_New_Roman_8_n_bnnn_0_nh_mapping_table[];
#endif
#ifdef FONTGEN_USE_PRECALCULATED_OFFSETS
const font_offset_t font_Times_New_Roman_8_n_bnnn_0_nh_offset_table[];
#endif
/*
Unicode to current codepage codes:
----------------------------------
User requested to care current codepage of Windows. So, unicode character
codes are converted to the codes which is used by the current code page
(windows-1252: ANSI Latin 1; Western European (Windows) ) whenever possible.
This conversion is quite helpful when your codepage is different than the
standart ASCII code table, and using those characters in your strings in
your IDE which is not in the ASCII code table.
Consider you're using MS Windows for Turkey, with the current codepage
'windows-1254: ANSI Turkish; Turkish (Windows)'; and want to use the Turkish
characters on your LCD interface.
Consider the 'I' character with a dot above. Its unicode code is 0x0130.
Its code in the windows1254 codepage is 0xDD. When I create a string with
this character in it, the IDE will put 0xDD for the character. When you
address the FontGen tables with 0xDD, you'll reach to a wrong or invalid glyph.
When the 'care codepage' option is checked, FontGen will use 0xDD instead of
0x0130 for all occurences of this character. This will fix the problem
described above.
*/
const FONT_DEF Times_New_Roman_8_n_bnnn_0_nh = {
#ifdef FONTGEN_HAVE_VERSION
4, /* Version of the image definition format */
#ifdef FONTGEN_FIT_TO_16BIT_BOUNDARY
0, /* filler for 16 bit boundary alignment */
#endif
#endif
13, /* glyph_height */
0, /* glyph_width (this font has variable width for each glyph.)
Check the below array for the width of the glyphs */
(fuint8 *)font_Times_New_Roman_8_n_bnnn_0_nh_width_table,
NULL, /* black height table */
(fuint8 *)font_Times_New_Roman_8_n_bnnn_0_nh_black_width_table, /* black width table */
NULL, /* origin Y table */
(fint8 *)font_Times_New_Roman_8_n_bnnn_0_nh_origin_x_table, /* origin X table */
#ifdef FONTGEN_HAVE_MINMAX_Y
1, /* minimum origin Y over all characters in this character set */
13, /* maximum ending point of black area (origin_y + black_height) over all characters in this character set */
#endif
#ifdef FONTGEN_HAVE_MINMAX_X
-1, /* minimum origin X over all characters in this character set */
7, /* maximum ending point of black area (origin_x + black_width) over all characters in this character set */
#endif
(fuint8 *)font_Times_New_Roman_8_n_bnnn_0_nh_glyph_table,
#ifdef FONTGEN_HAVE_MAPPING_TABLE
#ifdef FONTGEN_USE_MAPPING_TABLE
(fuint8 *)font_Times_New_Roman_8_n_bnnn_0_nh_mapping_table,
#else
NULL,
#endif
#endif
#ifdef FONTGEN_HAVE_EXTENDED_MAPPING_TABLE
#ifdef FONTGEN_USE_EXTENDED_MAPPING_TABLE
(fuint16 *)font_Times_New_Roman_8_n_bnnn_0_nh_extended_mapping_table,
#else
NULL,
#endif
#endif
#ifdef FONTGEN_HAVE_PRECALCULATED_OFFSETS
#ifdef FONTGEN_USE_PRECALCULATED_OFFSETS
(font_offset_t *)font_Times_New_Roman_8_n_bnnn_0_nh_offset_table,
#else
NULL,
#endif
#endif
28, /* number of glyphs in this font definition */
#ifdef FONTGEN_HAVE_FONT_DETAILS
8, /* font size */
#endif
0, /* rotation / 90 */
1, /* color depth in bits */
#ifdef FONTGEN_HAVE_FONT_DETAILS
1, /* bold? */
0, /* italic? */
0, /* underline? */
0, /* strikeout? */
0, /* flipX? */
0, /* flipY? */
0 /* reverse? */
#endif
};
/* Following table provides the width information in pixels for each character
selected.
You should index this array with the index of the char in your character set.
This can be calculated with a simple mathematical expression if you have such
a simple expression, or you can use the mapping table for this purpose.
To find the width of a glyph in font_Times_New_Roman_8_n_bnnn_0_nh_width_table[],
use the following expression:
font_Times_New_Roman_8_n_bnnn_0_nh_width_table[font_Times_New_Roman_8_n_bnnn_0_nh_offset_table[c]]
where 'c' is the variable holding the character you're interested in
This table is produced only for the variable width fonts. For the fixed width
fonts, you should use the width information in FONT_DEF struct.
*/
const fuint8 font_Times_New_Roman_8_n_bnnn_0_nh_width_table[] = {
/* width char hexcode*/
/* ===== ==== =======*/
6, /* '.' 0x06F0*/
6, /* '.' 0x06F1*/
6, /* '.' 0x06F2*/
6, /* '.' 0x06F3*/
6, /* '.' 0x06F4*/
6, /* '.' 0x06F5*/
6, /* '.' 0x06F6*/
6, /* '.' 0x06F7*/
6, /* '.' 0x06F8*/
6, /* '.' 0x06F9*/
3, /* '.' 0x0622*/
2, /* '.' 0x0627*/
5, /* '.' 0x0621*/
3, /* '.' 0xFE8E*/
3, /* '.' 0xFE91*/
7, /* '.' 0x0628*/
3, /* '.' 0xFB58*/
7, /* '.' 0x067E*/
3, /* '.' 0xFE97*/
7, /* '.' 0x062A*/
3, /* '.' 0xFE9B*/
7, /* '.' 0x062B*/
6, /* '.' 0xFE9F*/
6, /* '.' 0xFE9E*/
6, /* '.' 0x062C*/
6, /* '.' 0xFB7C*/
6, /* '.' 0xFB7B*/
6, /* '.' 0x0686*/
};
/* Following is the array holding the width of each glyph's black area.
While the width of the black area is generally less than the width of the
glyphs, it can be greater than it also. Glyph for char 'f' (Time New Roman Italic)
is such a case. In the compact horizontal mode, only the black area is
dumped to the font definition file.
*/
const fuint8 font_Times_New_Roman_8_n_bnnn_0_nh_black_width_table[] = {
/* black_width char hexcode*/
/* =========== ==== =======*/
2, /* '.' 0x06F0 */
3, /* '.' 0x06F1 */
4, /* '.' 0x06F2 */
6, /* '.' 0x06F3 */
5, /* '.' 0x06F4 */
4, /* '.' 0x06F5 */
4, /* '.' 0x06F6 */
5, /* '.' 0x06F7 */
4, /* '.' 0x06F8 */
4, /* '.' 0x06F9 */
3, /* '.' 0x0622 */
2, /* '.' 0x0627 */
5, /* '.' 0x0621 */
3, /* '.' 0xFE8E */
4, /* '.' 0xFE91 */
7, /* '.' 0x0628 */
4, /* '.' 0xFB58 */
7, /* '.' 0x067E */
4, /* '.' 0xFE97 */
7, /* '.' 0x062A */
4, /* '.' 0xFE9B */
7, /* '.' 0x062B */
7, /* '.' 0xFE9F */
7, /* '.' 0xFE9E */
7, /* '.' 0x062C */
7, /* '.' 0xFB7C */
7, /* '.' 0xFB7B */
7, /* '.' 0x0686 */
};
/* Following is the array holding the X part of the origin point (top-left) for
the black area of the glyph. While this value is positive in general
(meaning that we have empty columns at the left of the glyph), it can be
negative for some cases. This is called as overhang. The overhang is
the part of the ink of a glyph that extends beyond the advance width of
the glyph. Most glyphs (such as 'H') have no overhang, as there is a
little white space on either side to separate them from adjacent glyphs.
An example of a glyph with overhang is the italic 'f' for Times New Roman.
Another example for overhang is some non-latin language glyphs like Devanagari.
For Devanagari, some glyphs (like 0x0941) are printed above or below of
the previous glpyh printed, which means they have 0 advance width at all.
*/
const fint8 font_Times_New_Roman_8_n_bnnn_0_nh_origin_x_table[] = {
/* origin_x char hexcode*/
/* ======== ==== =======*/
2, /* '.' 0x06F0 */
1, /* '.' 0x06F1 */
1, /* '.' 0x06F2 */
0, /* '.' 0x06F3 */
0, /* '.' 0x06F4 */
1, /* '.' 0x06F5 */
1, /* '.' 0x06F6 */
0, /* '.' 0x06F7 */
1, /* '.' 0x06F8 */
1, /* '.' 0x06F9 */
0, /* '.' 0x0622 */
0, /* '.' 0x0627 */
0, /* '.' 0x0621 */
0, /* '.' 0xFE8E */
-1, /* '.' 0xFE91 */
0, /* '.' 0x0628 */
-1, /* '.' 0xFB58 */
0, /* '.' 0x067E */
-1, /* '.' 0xFE97 */
0, /* '.' 0x062A */
-1, /* '.' 0xFE9B */
0, /* '.' 0x062B */
-1, /* '.' 0xFE9F */
0, /* '.' 0xFE9E */
0, /* '.' 0x062C */
-1, /* '.' 0xFB7C */
0, /* '.' 0xFB7B */
0, /* '.' 0x0686 */
};
#ifdef FONTGEN_USE_MAPPING_TABLE
/* Following array provides the mapping for the characters in the ASCII
character set to your character set.
Consider you've selected characters A-Z, 0-9 to produce the font definition for.
With this selection, in the offset, detail and width tables, the first entry
will be for the character 'A', since it is your first char. And the 26. entry
will be for the char '0'.
In the micro, you'll need to address these tables at run time; therefore you'll
need the mapping of ASCII character set to your character set. If you can find
a simple mathematical expression for this mapping, you can use that. For the
above character set, you can use the following mathematical expression for
this mapping:
offset(c): (c>'A')?(c-'A'):(c-'0'+'Z'-'A'+1)
If you do not have such a mathematical expression of you do not want to get tied
to such an expression, you can use the following mapping table.
This table is indexed with the ASCII character set, and returns the index
for your character set. If you do not have the given ASCII char in your charset
it will return 0 always. This means that if you try to print a char
which you have not prepared the font for, you'll print the first char in your
charset.
If you want to find the offset for char 'A', use the following code:
font_Times_New_Roman_8_n_bnnn_0_nh_offset_table[font_Times_New_Roman_8_n_bnnn_0_nh_mapping_table['A']]
If you do not want to use this mapping table, undefine FONTGEN_USE_MAPPING_TABLE
to reduce the code size
If you're generating multiple font definition files for the same character set
to use in the same project, a single mapping file is adequate for all those
definition files. You can remove all others to save space, but you need to
update the other font definition files to point to the only one mapping table.
Note for unicode version:
=========================
If you're generating font definition for the characters from a single
code page, you can use the mapping table as following:
font_Times_New_Roman_8_n_bnnn_0_nh_offset_table[font_Times_New_Roman_8_n_bnnn_0_nh_mapping_table[unicode_glpyh & 0x00FF]]
If you're generating font definition for the glpyhs from different code
pages, there is a risk of collision in the mapping table. Consider that
you're using chars 0x0612 and 0x0712. Both of these glpyhs would map to
slot 0x12.
If you're generating font definition for more than 256 glpyhs, extend the
mapping table by hand.
If there is a risk of collision because of using glyphs from different
code pages, check the mapping table manually to fix the collision.
If you do not want to make manual changes, you can use the
font_Times_New_Roman_8_n_bnnn_0_nh_extended_mapping table below.
*/
const fuint8 font_Times_New_Roman_8_n_bnnn_0_nh_mapping_table[] = {
/* map hexcode decimal char ('.' is printed for the unprintable characters) */
/* === ======= ======= ==== */
0, /* 00 - 0 - '.' */
0, /* 01 - 1 - '.' */
0, /* 02 - 2 - '.' */
0, /* 03 - 3 - '.' */
0, /* 04 - 4 - '.' */
0, /* 05 - 5 - '.' */
0, /* 06 - 6 - '.' */
0, /* 07 - 7 - '.' */
0, /* 08 - 8 - '.' */
0, /* 09 - 9 - '.' */
0, /* 0A - 10 - '.' */
0, /* 0B - 11 - '.' */
0, /* 0C - 12 - '.' */
0, /* 0D - 13 - '.' */
0, /* 0E - 14 - '.' */
0, /* 0F - 15 - '.' */
0, /* 10 - 16 - '.' */
0, /* 11 - 17 - '.' */
0, /* 12 - 18 - '.' */
0, /* 13 - 19 - '.' */
0, /* 14 - 20 - '.' */
0, /* 15 - 21 - '.' */
0, /* 16 - 22 - '.' */
0, /* 17 - 23 - '.' */
0, /* 18 - 24 - '.' */
0, /* 19 - 25 - '.' */
0, /* 1A - 26 - '.' */
0, /* 1B - 27 - '.' */
0, /* 1C - 28 - '.' */
0, /* 1D - 29 - '.' */
0, /* 1E - 30 - '.' */
0, /* 1F - 31 - '.' */
0, /* 20 - 32 - ' ' */
12, /* 21 - 33 - '!' */
10, /* 22 - 34 - '"' */
0, /* 23 - 35 - '#' */
0, /* 24 - 36 - '$' */
0, /* 25 - 37 - '%' */
0, /* 26 - 38 - '&' */
11, /* 27 - 39 - ''' */
15, /* 28 - 40 - '(' */
0, /* 29 - 41 - ')' */
19, /* 2A - 42 - '*' */
21, /* 2B - 43 - '+' */
24, /* 2C - 44 - ',' */
0, /* 2D - 45 - '-' */
0, /* 2E - 46 - '.' */
0, /* 2F - 47 - '/' */
0, /* 30 - 48 - '0' */
0, /* 31 - 49 - '1' */
0, /* 32 - 50 - '2' */
0, /* 33 - 51 - '3' */
0, /* 34 - 52 - '4' */
0, /* 35 - 53 - '5' */
0, /* 36 - 54 - '6' */
0, /* 37 - 55 - '7' */
0, /* 38 - 56 - '8' */
0, /* 39 - 57 - '9' */
0, /* 3A - 58 - ':' */
0, /* 3B - 59 - ';' */
0, /* 3C - 60 - '<' */
0, /* 3D - 61 - '=' */
0, /* 3E - 62 - '>' */
0, /* 3F - 63 - '?' */
0, /* 40 - 64 - '@' */
0, /* 41 - 65 - 'A' */
0, /* 42 - 66 - 'B' */
0, /* 43 - 67 - 'C' */
0, /* 44 - 68 - 'D' */
0, /* 45 - 69 - 'E' */
0, /* 46 - 70 - 'F' */
0, /* 47 - 71 - 'G' */
0, /* 48 - 72 - 'H' */
0, /* 49 - 73 - 'I' */
0, /* 4A - 74 - 'J' */
0, /* 4B - 75 - 'K' */
0, /* 4C - 76 - 'L' */
0, /* 4D - 77 - 'M' */
0, /* 4E - 78 - 'N' */
0, /* 4F - 79 - 'O' */
0, /* 50 - 80 - 'P' */
0, /* 51 - 81 - 'Q' */
0, /* 52 - 82 - 'R' */
0, /* 53 - 83 - 'S' */
0, /* 54 - 84 - 'T' */
0, /* 55 - 85 - 'U' */
0, /* 56 - 86 - 'V' */
0, /* 57 - 87 - 'W' */
16, /* 58 - 88 - 'X' */
0, /* 59 - 89 - 'Y' */
0, /* 5A - 90 - 'Z' */
0, /* 5B - 91 - '[' */
0, /* 5C - 92 - '\' */
0, /* 5D - 93 - ']' */
0, /* 5E - 94 - '^' */
0, /* 5F - 95 - '_' */
0, /* 60 - 96 - '`' */
0, /* 61 - 97 - 'a' */
0, /* 62 - 98 - 'b' */
0, /* 63 - 99 - 'c' */
0, /* 64 - 100 - 'd' */
0, /* 65 - 101 - 'e' */
0, /* 66 - 102 - 'f' */
0, /* 67 - 103 - 'g' */
0, /* 68 - 104 - 'h' */
0, /* 69 - 105 - 'i' */
0, /* 6A - 106 - 'j' */
0, /* 6B - 107 - 'k' */
0, /* 6C - 108 - 'l' */
0, /* 6D - 109 - 'm' */
0, /* 6E - 110 - 'n' */
0, /* 6F - 111 - 'o' */
0, /* 70 - 112 - 'p' */
0, /* 71 - 113 - 'q' */
0, /* 72 - 114 - 'r' */
0, /* 73 - 115 - 's' */
0, /* 74 - 116 - 't' */
0, /* 75 - 117 - 'u' */
0, /* 76 - 118 - 'v' */
0, /* 77 - 119 - 'w' */
0, /* 78 - 120 - 'x' */
0, /* 79 - 121 - 'y' */
0, /* 7A - 122 - 'z' */
26, /* 7B - 123 - '{' */
25, /* 7C - 124 - '|' */
0, /* 7D - 125 - '}' */
17, /* 7E - 126 - '~' */
0, /* 7F - 127 - '' */
0, /* 80 - 128 - '' */
0, /* 81 - 129 - '' */
0, /* 82 - 130 - '' */
0, /* 83 - 131 - '' */
0, /* 84 - 132 - '' */
0, /* 85 - 133 - '
' */
27, /* 86 - 134 - '' */
0, /* 87 - 135 - '' */
0, /* 88 - 136 - '' */
0, /* 89 - 137 - '' */
0, /* 8A - 138 - '' */
0, /* 8B - 139 - '' */
0, /* 8C - 140 - '' */
0, /* 8D - 141 - '' */
13, /* 8E - 142 - '' */
0, /* 8F - 143 - '' */
0, /* 90 - 144 - '' */
14, /* 91 - 145 - '' */
0, /* 92 - 146 - '' */
0, /* 93 - 147 - '' */
0, /* 94 - 148 - '' */
0, /* 95 - 149 - '' */
0, /* 96 - 150 - '' */
18, /* 97 - 151 - '' */
0, /* 98 - 152 - '' */
0, /* 99 - 153 - '' */
0, /* 9A - 154 - '' */
20, /* 9B - 155 - '' */
0, /* 9C - 156 - '' */
0, /* 9D - 157 - '' */
23, /* 9E - 158 - '' */
22, /* 9F - 159 - '' */
0, /* A0 - 160 - ' ' */
0, /* A1 - 161 - '¡' */
0, /* A2 - 162 - '¢' */
0, /* A3 - 163 - '£' */
0, /* A4 - 164 - '¤' */
0, /* A5 - 165 - '¥' */
0, /* A6 - 166 - '¦' */
0, /* A7 - 167 - '§' */
0, /* A8 - 168 - '¨' */
0, /* A9 - 169 - '©' */
0, /* AA - 170 - 'ª' */
0, /* AB - 171 - '«' */
0, /* AC - 172 - '¬' */
0, /* AD - 173 - '' */
0, /* AE - 174 - '®' */
0, /* AF - 175 - '¯' */
0, /* B0 - 176 - '°' */
0, /* B1 - 177 - '±' */
0, /* B2 - 178 - '²' */
0, /* B3 - 179 - '³' */
0, /* B4 - 180 - '´' */
0, /* B5 - 181 - 'µ' */
0, /* B6 - 182 - '¶' */
0, /* B7 - 183 - '·' */
0, /* B8 - 184 - '¸' */
0, /* B9 - 185 - '¹' */
0, /* BA - 186 - 'º' */
0, /* BB - 187 - '»' */
0, /* BC - 188 - '¼' */
0, /* BD - 189 - '½' */
0, /* BE - 190 - '¾' */
0, /* BF - 191 - '¿' */
0, /* C0 - 192 - 'À' */
0, /* C1 - 193 - 'Á' */
0, /* C2 - 194 - 'Â' */
0, /* C3 - 195 - 'Ã' */
0, /* C4 - 196 - 'Ä' */
0, /* C5 - 197 - 'Å' */
0, /* C6 - 198 - 'Æ' */
0, /* C7 - 199 - 'Ç' */
0, /* C8 - 200 - 'È' */
0, /* C9 - 201 - 'É' */
0, /* CA - 202 - 'Ê' */
0, /* CB - 203 - 'Ë' */
0, /* CC - 204 - 'Ì' */
0, /* CD - 205 - 'Í' */
0, /* CE - 206 - 'Î' */
0, /* CF - 207 - 'Ï' */
0, /* D0 - 208 - 'Ð' */
0, /* D1 - 209 - 'Ñ' */
0, /* D2 - 210 - 'Ò' */
0, /* D3 - 211 - 'Ó' */
0, /* D4 - 212 - 'Ô' */
0, /* D5 - 213 - 'Õ' */
0, /* D6 - 214 - 'Ö' */
0, /* D7 - 215 - '×' */
0, /* D8 - 216 - 'Ø' */
0, /* D9 - 217 - 'Ù' */
0, /* DA - 218 - 'Ú' */
0, /* DB - 219 - 'Û' */
0, /* DC - 220 - 'Ü' */
0, /* DD - 221 - 'Ý' */
0, /* DE - 222 - 'Þ' */
0, /* DF - 223 - 'ß' */
0, /* E0 - 224 - 'à' */
0, /* E1 - 225 - 'á' */
0, /* E2 - 226 - 'â' */
0, /* E3 - 227 - 'ã' */
0, /* E4 - 228 - 'ä' */
0, /* E5 - 229 - 'å' */
0, /* E6 - 230 - 'æ' */
0, /* E7 - 231 - 'ç' */
0, /* E8 - 232 - 'è' */
0, /* E9 - 233 - 'é' */
0, /* EA - 234 - 'ê' */
0, /* EB - 235 - 'ë' */
0, /* EC - 236 - 'ì' */
0, /* ED - 237 - 'í' */
0, /* EE - 238 - 'î' */
0, /* EF - 239 - 'ï' */
0, /* F0 - 240 - 'ð' */
1, /* F1 - 241 - 'ñ' */
2, /* F2 - 242 - 'ò' */
3, /* F3 - 243 - 'ó' */
4, /* F4 - 244 - 'ô' */
5, /* F5 - 245 - 'õ' */
6, /* F6 - 246 - 'ö' */
7, /* F7 - 247 - '÷' */
8, /* F8 - 248 - 'ø' */
9, /* F9 - 249 - 'ù' */
0, /* FA - 250 - 'ú' */
0, /* FB - 251 - 'û' */
0, /* FC - 252 - 'ü' */
0, /* FD - 253 - 'ý' */
0, /* FE - 254 - 'þ' */
0, /* FF - 255 - 'ÿ' */
};
#endif
#ifdef FONTGEN_USE_EXTENDED_MAPPING_TABLE
#error 'Extended mapping table generation is disabled from user interface of FontGen'
#endif
/* Following is the one dimensional flat array to hold the font information.
Each byte holds the color information for the successive pixels.
If the color_depth=1, then each byte will hold the color info (or set/reset)
for 8 pixels.
Even it is a one-dimensional array, the representation is in matrix format,
where each line is holding the color information of a line of the glyph.
The starting offset of a given glyph can be calculated by code using the
width and height information of the all characters before the given character.
Or array font_Times_New_Roman_8_n_bnnn_0_nh_offset_table[] can be used for this purpose.
*/
const fuint8 font_Times_New_Roman_8_n_bnnn_0_nh_glyph_table[] = {
/* char: '.' hexcode: 0x06F0 glyph_width: 6 black_width: 2 origin_x: 2 */
0x00, /* [ ] */
0x00, /* [ ] */
0x00, /* [ ] */
0x00, /* [ ] */
0x00, /* [ ] */
0x00, /* [ ] */
0x40, /* [ *] */
0x40, /* [ *] */
0x00, /* [ ] */
0x00, /* [ ] */
0x00, /* [ ] */
0x00, /* [ ] */
0x00, /* [ ] */
/* char: '.' hexcode: 0x06F1 glyph_width: 6 black_width: 3 origin_x: 1 */
0x00, /* [ ] */
0x00, /* [ ] */
0x00, /* [ ] */
0x00, /* [ ] */
0x60, /* [ **] */
0x20, /* [ *] */
0x20, /* [ *] */
0x20, /* [ *] */
0x00, /* [ ] */
0x00, /* [ ] */
0x00, /* [ ] */
0x00, /* [ ] */
0x00, /* [ ] */
/* char: '.' hexcode: 0x06F2 glyph_width: 6 black_width: 4 origin_x: 1 */
0x00, /* [ ] */
0x00, /* [ ] */
0x00, /* [ ] */
0x10, /* [ *] */
0x70, /* [ ***] */
0x60, /* [ ** ] */
0x20, /* [ * ] */
0x20, /* [ * ] */
0x00, /* [ ] */
0x00, /* [ ] */
0x00, /* [ ] */
0x00, /* [ ] */
0x00, /* [ ] */
/* char: '.' hexcode: 0x06F3 glyph_width: 6 black_width: 6 origin_x: 0 */
0x00, /* [ ] */
0x00, /* [ ] */
0x00, /* [ ] */
0x10, /* [ * ] */
0x78, /* [ **** ] */
0x38, /* [ *** ] */
0x20, /* [ * ] */
0x00, /* [ ] */
0x00, /* [ ] */
0x00, /* [ ] */
0x00, /* [ ] */
0x00, /* [ ] */
0x00, /* [ ] */
/* char: '.' hexcode: 0x06F4 glyph_width: 6 black_width: 5 origin_x: 0 */
0x00, /* [ ] */
0x00, /* [ ] */
0x00, /* [ ] */
0x18, /* [ **] */
0x70, /* [ *** ] */
0x38, /* [ ***] */
0x38, /* [ ***] */
0x00, /* [ ] */
0x00, /* [ ] */
0x00, /* [ ] */
0x00, /* [ ] */
0x00, /* [ ] */
0x00, /* [ ] */
/* char: '.' hexcode: 0x06F5 glyph_width: 6 black_width: 4 origin_x: 1 */
0x00, /* [ ] */
0x00, /* [ ] */
0x00, /* [ ] */
0x00, /* [ ] */
0x20, /* [ * ] */
0x30, /* [ **] */
0x40, /* [ * ] */
0xF0, /* [****] */
0x70, /* [ ***] */
0x00, /* [ ] */
0x00, /* [ ] */
0x00, /* [ ] */
0x00, /* [ ] */
/* char: '.' hexcode: 0x06F6 glyph_width: 6 black_width: 4 origin_x: 1 */
0x00, /* [ ] */
0x00, /* [ ] */
0x00, /* [ ] */
0x30, /* [ **] */
0x40, /* [ * ] */
0x70, /* [ ***] */
0x70, /* [ ***] */
0x20, /* [ * ] */
0x40, /* [ * ] */
0x00, /* [ ] */
0x00, /* [ ] */
0x00, /* [ ] */
0x00, /* [ ] */
/* char: '.' hexcode: 0x06F7 glyph_width: 6 black_width: 5 origin_x: 0 */
0x00, /* [ ] */
0x00, /* [ ] */
0x00, /* [ ] */
0x00, /* [ ] */
0x48, /* [ * *] */
0x28, /* [ * *] */
0x20, /* [ * ] */
0x10, /* [ * ] */
0x10, /* [ * ] */
0x00, /* [ ] */
0x00, /* [ ] */
0x00, /* [ ] */
0x00, /* [ ] */
/* char: '.' hexcode: 0x06F8 glyph_width: 6 black_width: 4 origin_x: 1 */
0x00, /* [ ] */
0x00, /* [ ] */
0x00, /* [ ] */
0x20, /* [ * ] */
0x20, /* [ * ] */
0x40, /* [ * ] */
0x50, /* [ * *] */
0x90, /* [* *] */
0x80, /* [* ] */
0x00, /* [ ] */
0x00, /* [ ] */
0x00, /* [ ] */
0x00, /* [ ] */
/* char: '.' hexcode: 0x06F9 glyph_width: 6 black_width: 4 origin_x: 1 */
0x00, /* [ ] */
0x00, /* [ ] */
0x00, /* [ ] */
0x60, /* [ ** ] */
0x20, /* [ * ] */
0x60, /* [ ** ] */
0x60, /* [ ** ] */
0x10, /* [ *] */
0x10, /* [ *] */
0x00, /* [ ] */
0x00, /* [ ] */
0x00, /* [ ] */
0x00, /* [ ] */
/* char: '.' hexcode: 0x0622 glyph_width: 3 black_width: 3 origin_x: 0 */
0x00, /* [ ] */
0x60, /* [ **] */
0x00, /* [ ] */
0x00, /* [ ] */
0x40, /* [ * ] */
0x00, /* [ ] */
0x00, /* [ ] */
0x00, /* [ ] */
0x00, /* [ ] */
0x00, /* [ ] */
0x00, /* [ ] */
0x00, /* [ ] */
0x00, /* [ ] */
/* char: '.' hexcode: 0x0627 glyph_width: 2 black_width: 2 origin_x: 0 */
0x00, /* [ ] */
0x00, /* [ ] */
0x00, /* [ ] */
0x00, /* [ ] */
0x40, /* [ *] */
0x40, /* [ *] */
0x40, /* [ *] */
0x40, /* [ *] */
0x00, /* [ ] */
0x00, /* [ ] */
0x00, /* [ ] */
0x00, /* [ ] */
0x00, /* [ ] */
/* char: '.' hexcode: 0x0621 glyph_width: 5 black_width: 5 origin_x: 0 */
0x00, /* [ ] */
0x00, /* [ ] */
0x00, /* [ ] */
0x00, /* [ ] */
0x00, /* [ ] */
0x30, /* [ ** ] */
0x70, /* [ *** ] */
0x40, /* [ * ] */
0x38, /* [ ***] */
0x40, /* [ * ] */
0x00, /* [ ] */
0x00, /* [ ] */
0x00, /* [ ] */
/* char: '.' hexcode: 0xFE8E glyph_width: 3 black_width: 3 origin_x: 0 */
0x00, /* [ ] */
0x00, /* [ ] */
0x00, /* [ ] */
0x00, /* [ ] */
0x40, /* [ * ] */
0x40, /* [ * ] */
0x40, /* [ * ] */
0x60, /* [ **] */
0x20, /* [ *] */
0x00, /* [ ] */
0x00, /* [ ] */
0x00, /* [ ] */
0x00, /* [ ] */
/* char: '.' hexcode: 0xFE91 glyph_width: 3 black_width: 4 origin_x: -1 */
0x00, /* [ ] */
0x00, /* [ ] */
0x00, /* [ ] */
0x00, /* [ ] */
0x00, /* [ ] */
0x10, /* [ *] */
0x00, /* [ ] */
0x70, /* [ ***] */
0x70, /* [ ***] */
0x00, /* [ ] */
0x30, /* [ **] */
0x00, /* [ ] */
0x00, /* [ ] */
/* char: '.' hexcode: 0x0628 glyph_width: 7 black_width: 7 origin_x: 0 */
0x00, /* [ ] */
0x00, /* [ ] */
0x00, /* [ ] */
0x00, /* [ ] */
0x00, /* [ ] */
0x02, /* [ *] */
0x00, /* [ ] */
0x7E, /* [ ******] */
0x7E, /* [ ******] */
0x00, /* [ ] */
0x08, /* [ * ] */
0x00, /* [ ] */
0x00, /* [ ] */
/* char: '.' hexcode: 0xFB58 glyph_width: 3 black_width: 4 origin_x: -1 */
0x00, /* [ ] */
0x00, /* [ ] */
0x00, /* [ ] */
0x00, /* [ ] */
0x00, /* [ ] */
0x10, /* [ *] */
0x00, /* [ ] */
0x70, /* [ ***] */
0x70, /* [ ***] */
0x00, /* [ ] */
0x30, /* [ **] */
0x10, /* [ *] */
0x00, /* [ ] */
/* char: '.' hexcode: 0x067E glyph_width: 7 black_width: 7 origin_x: 0 */
0x00, /* [ ] */
0x00, /* [ ] */
0x00, /* [ ] */
0x00, /* [ ] */
0x00, /* [ ] */
0x02, /* [ *] */
0x00, /* [ ] */
0x7E, /* [ ******] */
0x7E, /* [ ******] */
0x00, /* [ ] */
0x18, /* [ ** ] */
0x08, /* [ * ] */
0x00, /* [ ] */
/* char: '.' hexcode: 0xFE97 glyph_width: 3 black_width: 4 origin_x: -1 */
0x00, /* [ ] */
0x00, /* [ ] */
0x00, /* [ ] */
0x30, /* [ **] */
0x00, /* [ ] */
0x10, /* [ *] */
0x00, /* [ ] */
0x70, /* [ ***] */
0x70, /* [ ***] */
0x00, /* [ ] */
0x00, /* [ ] */
0x00, /* [ ] */
0x00, /* [ ] */
/* char: '.' hexcode: 0x062A glyph_width: 7 black_width: 7 origin_x: 0 */
0x00, /* [ ] */
0x00, /* [ ] */
0x00, /* [ ] */
0x00, /* [ ] */
0x18, /* [ ** ] */
0x02, /* [ *] */
0x00, /* [ ] */
0x7E, /* [ ******] */
0x7E, /* [ ******] */
0x00, /* [ ] */
0x00, /* [ ] */
0x00, /* [ ] */
0x00, /* [ ] */
/* char: '.' hexcode: 0xFE9B glyph_width: 3 black_width: 4 origin_x: -1 */
0x00, /* [ ] */
0x00, /* [ ] */
0x20, /* [ * ] */
0x30, /* [ **] */
0x00, /* [ ] */
0x10, /* [ *] */
0x00, /* [ ] */
0x70, /* [ ***] */
0x70, /* [ ***] */
0x00, /* [ ] */
0x00, /* [ ] */
0x00, /* [ ] */
0x00, /* [ ] */
/* char: '.' hexcode: 0x062B glyph_width: 7 black_width: 7 origin_x: 0 */
0x00, /* [ ] */
0x00, /* [ ] */
0x00, /* [ ] */
0x10, /* [ * ] */
0x18, /* [ ** ] */
0x02, /* [ *] */
0x00, /* [ ] */
0x7E, /* [ ******] */
0x7E, /* [ ******] */
0x00, /* [ ] */
0x00, /* [ ] */
0x00, /* [ ] */
0x00, /* [ ] */
/* char: '.' hexcode: 0xFE9F glyph_width: 6 black_width: 7 origin_x: -1 */
0x00, /* [ ] */
0x00, /* [ ] */
0x00, /* [ ] */
0x00, /* [ ] */
0x00, /* [ ] */
0x18, /* [ ** ] */
0x0C, /* [ ** ] */
0x7E, /* [ ******] */
0x7E, /* [ ******] */
0x00, /* [ ] */
0x18, /* [ ** ] */
0x00, /* [ ] */
0x00, /* [ ] */
/* char: '.' hexcode: 0xFE9E glyph_width: 6 black_width: 7 origin_x: 0 */
0x00, /* [ ] */
0x00, /* [ ] */
0x00, /* [ ] */
0x00, /* [ ] */
0x00, /* [ ] */
0x7C, /* [ ***** ] */
0x30, /* [ ** ] */
0x6C, /* [ ** ** ] */
0x4C, /* [ * ** ] */
0x30, /* [ ** ] */
0x40, /* [ * ] */
0x7C, /* [ ***** ] */
0x38, /* [ *** ] */
/* char: '.' hexcode: 0x062C glyph_width: 6 black_width: 7 origin_x: 0 */
0x00, /* [ ] */
0x00, /* [ ] */
0x00, /* [ ] */
0x00, /* [ ] */
0x00, /* [ ] */
0x7C, /* [ ***** ] */
0x20, /* [ * ] */
0x40, /* [ * ] */
0x18, /* [ ** ] */
0x00, /* [ ] */
0x40, /* [ * ] */
0x7C, /* [ ***** ] */