![](http://datasheet.mmic.net.cn/260000/PPSMMANUAL_datasheet_15946768/PPSMMANUAL_127.png)
22-6
Text Tools
Programmer’s Manual
Return Value
22.8
TextSetOutlook
Syntax
STATUS
TextSetOutlook
(U32 templateId U16 outputStyle U16 greyLevel)
Description
Sets up the output style and grey level of the given text template with the gReturn Value
values. Subsequent text mapped using this text template will be displayed with
these new settings.
The output style is defined as the arithmetic operation between the text
character bitmap and the image on the panning screen where the character
bitmap will be displayed. Five output styles are supported. The text bitmap can
replace, OR with, AND with, exclusive OR with, or be inverted and replace the
existing image.
Up to four grey levels are currently supported. For a 1 bit per pixel system, the
grey levels supported are white and black. For a 2 bits per pixel system, the
grey levels supported are white, light grey, dark grey and black.
pFontAttr
Pointer to a text font attributes data
structure. Supported font types are:
SMALL_NORMAL_FONT
Small Normal (English)
SMALL_ITALIC_FONT
Small Italic (English)
LARGE_NORMAL_FONT
Large Normal (English)
LARGE_ITALIC_FONT
Large Italic (English)
GB_NORMAL_FONT
GB Normal
CHINESE_NORMAL_FONT
same as GB Normal
BIG5_NORMAL_FONT
BIG5 Normal
BIG5_VARIABLE_FONT
BIG5 Variable
Name
Description
PPSM_OK
Successful operation
PPSM_ERR_TEXT_ID
Invalid text template identifier
PPSM_ERR_TEXT_FONT
Invalid font type
PPSM_ERR_NO_MEMORY
Not enough memory
Name
Description
Personal Portable System Manager
Programmer’s Manual
Text Tools
22-3
Reads the current character cursor position of the text template identified by
templateId. The character cursor position returned is relative to the origin of the
text display area.
Parameter
Return Value
22.5
TextSetCursor
Syntax
STATUS
TextSetCursor
Description
Sets the current character cursor position of the text template identified by
templateId to the new position as specified. The range of valid character cursor
positions to set to is zero through (text display area size in number of
characters - 1).
Parameter
Name
Description
templateId
cursor
Name
Description
PPSM_OK
Successful operation
PPSM_ERR_TEXT_ID
Invalid text template identifier
Name
Description
templateId
cursor
Name
Description
PPSM_OK
Successful operation
PPSM_ERR_TEXT_ID
Invalid text template identifier
PPSM_ERR_TEXT_CUR
Invalid character cursor position
F
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
.