OP7100
Graphics Programming 79
last character is for code 0xff.
make call to glFontInit(&fi, 6, 8, 32, 127, fontBitMap)
to initialize table*/
char fontBitMap[] = {
/* char 0x20 of width 6 at 0x5da */
'\x0',
'\x0',
'\x0',
'\x0',
'\x0',
'\x0',
...
'\x0'
};
The first task is to rename the array so that it is unique. Then you can
decide whether the font/bitmap should be stored in root memory or in
extended memory. Because bitmaps can be large and root memory space
is precious, Rabbit Semiconductor recommends you to use
xmem
to store
the font/bitmap. To store the font/bitmap in
xmem
, you need to change the
following line.
char fontBitMap[] = {
to
xdata fontBitMap {
Once these changes are made, you can copy and paste the font (as an
initialized character array or as an initialized
xdata
item) into your
program or library.
Remember to
#use
either the
OP71L.LIB
(landscape image)
or the
OP71P.LIB
(portrait image) library in your program.
Using the Font/Bitmap In Your Program
The array does not store the dimensions of the font or the bitmap. This
information is contained in the comments. The following lines in the
comments indicate the dimensions of the font.
/*horizontal size is 6 pixels.
vertical size is 8 pixels.*/
For fonts, the comments also indicate the starting character and the ending
character code with the following line.
/*make call to op71XFontInit(&fi, 6, 8, 32, 127,
fontBitMap)*/
The fourth argument is the first character code mapped to the font and the
fifth argument is the last character code mapped to the font.
Summary of Contents for OP7100
Page 1: ...OP7100 Serial Graphic Display User s Manual 019 0065 070831 O ...
Page 10: ...OP7100 x About This Manual ...
Page 16: ...OP7100 16 Overview ...
Page 74: ...OP7100 74 Software ...
Page 82: ...OP7100 82 Graphics Programming ...
Page 88: ...OP7100 88 Installation ...
Page 98: ...OP7100 98 Specifications ...
Page 108: ...OP7100 108 Memory I O Map and Interrupt Vectors ...
Page 112: ...112 Serial Interface Board 2 OP7100 ...
Page 113: ...OP7100 Backup Battery 113 APPENDIX E BACKUP BATTERY ...
Page 116: ...OP7100 116 Backup Battery ...
Page 124: ...OP7100 124 Index ...
Page 126: ...XX0000 Schematics ...