
8-4
TText Display Management
Programmer’s Manual
8.4.2.1 Text output style
The output style defines an operation between the text bitmap and the existing
image at a specified display location. Five output styles are supported. The text
bitmap can replace, OR with, AND with, exclusive OR with, or be inverted to
replace the existing image.
8.4.2.2 Text Grey Levels
Depending on the hardware system, up to four grey levels (0 to 3) can be
supported. For details about the grey levels, refer to Section 6.4 - 1 bit-per-piChinese, both GB and BIG-5 code formats are supported.
Graphics and Section 6.5 - 2 bits-per-pixel Graphics
8.4.3
Setting Font Attributes
STATUS
TextSetFont
(U32 templateId P_FONTATTR pFontAttr)
Font attributes includes font type, font size (where applicable), and any attributes
(e.g. outline) that’s related to a particular font type.
A font attribute data structure, called FONTATTR, needs to be filled with the
desired values in order for these font attributes to be modified. These new font
attributes will take effect when text is displayed using the text template which has
these new values set. The following is the font attribute structure defined in
ppsm.h:
typedef struct
{
U16
U16
U16
U16
type;
width;
height;
attrib;
/* font type */
/* font width (in #pixels) */
/* font height (in #pixels) */
/* other font attributes */
Table 8-1 Supported Output Styles
Output Styles
Operation
REPLACE_STYLE
Replace
OR_STYLE
Or with
AND_STYLE
And with
EXOR_STYLE
Exclusive-Or with
INVERSE_STYLE
Invert and replace
Table 8-2 Supported Grey Levels
Grey Level Values
Color
BLACK
Black
DARK_GREY
Dark Grey
LIGHT_GREY
Light Grey
WHITE
White
Personal Portable System Manager
Programmer’s Manual
8-1
Chapter 8
Text Display Management
Applications must map the text with its properties described in a text template to
an area on the display screen, called the text display area, before any text can be
seen. This chapter describes the set of text tools provided by PPSM to manage
the display of text on the panning display screen.
PPSM supports 16-bit text data representation which allows the support of any
coded languages. The default is the support for various font types and sizes of
Asian and English characters display. The low level font driver supports both the
scalable and bitmap font technologies. PPSM provides a set of default English
fonts with size 8 x 10 and 16 x 20. If other fonts are needed, please contact the
ISV.
8.1
Text Representation
Both ASCII and Asian characters are stored internally as 16-bit values (type
TEXT) system-wide. For 8-bit ASCII, they are zero-extended to 16-bit. For
The most significant byte of a 16-bit word is used to distinguish between 16-bit
zero-extended ASCII and Asian codes; all 16-bit ASCII characters have a zero
most significant byte while all Asian codes will have a non-zero most significant
byte.
8.2
Text Display Area
Text can be displayed anywhere within the panning screen (refer to Section
2.3.2.2 - Panning Screen). Text is displayed starting at a specified location in a
row by column format one character at a time as shown in
F
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
.