buydisplay.com
EastRising
4.2.5 Font Text Setting and Display Command
Font text means the displaying text or number come from the font library imported from PC. For
example, if the application wants to display a string of characters, user can use the graphic
compiler software generates a Bin file from the desired font. For example, generate a set 16*16
Font_16_16.bin file, a set of 24*24 Font_24_24.bin, and a set of 32*32 Font_32_32 .bin file, then
Programmed into the SPI Flash, and use command to call the text where it is intended to be
displayed. The resolution of the fonts called by C0~C3 is limited to 16*16, 24*24, 32*32. If the
external SPI Flash capacity is big enough, 4 groups of Chinese fonts (font 1 ~ font-4) can be used.
Table 4-7: Font Text Command
Command
Function
Code
No.
Command
Parameter
Command Description
Display Fnt-1
Text Setting
C0h
#nn:
F01(1), X(2), Y(2), W(2),
Color-F(3), Color-B(3),
Size-H(1), Size-V(1),
Transparency(1),
Alignment(1)
The font-1 text is displayed at the (X, Y)
position, the foreground color is Color-F,
the background color is Color-B, and the
horizontal and vertical magnifications are
Size-H and Size-V, respectively.
Transparency = 0 : opaque; 1: transparent.
Alignment = 0 : not aligned; 1: aligned. The
“W
is the width of text “window.
Display Font-2
Text Setting
C1h
#nn:
F02(1), X(2), Y(2), W(2),
Color-F(3), Color-B(3),
Size-H(1), Size-V(1),
Transparency(1),
Alignment(1)
The font-2 text is displayed at the (X, Y)
position, the foreground color is Color-F,
the background color is Color-B, and the
horizontal and vertical magnifications are
Size-H and Size-V, respectively.
Transparency = 0 : opaque; 1: transparent.
Alignment = 0 : not aligned; 1: aligned. The
“W
is the width of text “window.
Display Font-3
Text Setting
C2h
#nn:
F03(1), X(2), Y(2), W(2),
Color-F(3), Color-B(3),
Size-H(1), Size-V(1),
Transparency(1),
Alignment(1)
The font-3 text is displayed at the (X, Y)
position, the foreground color is Color-F,
the background color is Color-B, and the
horizontal and vertical magnifications are
Size-H and Size-V, respectively.
Transparency = 0 : opaque; 1: transparent.
Alignment = 0 : not aligned; 1: aligned. The
“W
is the width of text “window.
Display Font-4
Text Setting
C3h
#nn:
F04(1), X(2), Y(2), W(2),
Color-F(3), Color-B(3),
Size-H(1), Size-V(1),
Transparency(1),
Alignment(1)
The font-4 text is displayed at the (X, Y)
position, the foreground color is Color-F,
the background color is Color-B, and the
horizontal and vertical magnifications are
Size-H and Size-V, respectively.
Transparency = 0 : opaque; 1: transparent.
Alignment = 0 : not aligned; 1: aligned. The
“W
is the width of text “window.