Intermec ck1 Reference Guide
Chapter 5 — Nano-X APIs
272
CK1 SDK Programmer’s Reference Manual
GrSetFontSize ()
Purpose: Change the size of the specified font to the specified size.
Syntax:
void GrSetFontSize (GR_FONT_ID fontid,
GR_COORD size);
Parameters: fontid
Identification number of the font to change the size of
size
New size for the font
GrSetFontRotation ()
Purpose: Change the rotation of the specified font to the specified angle.
Syntax:
void GrSetFontRotation (GR_FONT_ID fontid,
int tenthsdegrees);
Parameters: fontid
Identification number of the font to rotate
tenthsdegrees Amount of rotation in tenths of a degree
GrSetFontAttr ()
Purpose: Change the attributes (GR_TFKERNING, GR_TFANTIALIAS,
GR_TFUNDERLINE, etc.) of the specified font according to the set and
clear mask arguments.
clear mask arguments.
Syntax:
void GrSetFontAttr (GR_FONT_ID fontid,
int setflags,
int clrflags);
int clrflags);
Parameters: fontid Identification of the font that you want to change
setflags Mask specifying attribute flags to set
clrflags Mask specifying attribute flags to clear
GrDestroyFont ()
Purpose: Free all resources associated with the specified font identification, and if
the font is a non-built in type and this is the last identification referring to
it, unload the font from memory.
it, unload the font from memory.
Syntax:
void GrDestroyFont (GR_FONT_ID fontid);
Parameter: fontid Identification of the font to destroy
GrGetFontInfo ()
Purpose: Fill in the specified GR_FONT_INFO structure with information
regarding the specified font.