Download BREW Developer Training

Transcript
BREW® Developer Training
Pixel Height of Font
int IDISPLAY_GetFontMetrics(IDisplay * pIDisplay,
AEEFont Font,
int * pnAscent,
int * pnDescent);
Ascent
The quick brown fox…
Baseline
Descent
Ascent + Descent = Character height for font
111
The above information shows the function signature for querying metrics of a font on a device. You
can obtain the length of the ascending and descending components of the font, which gives the
total height of a given font.
QUALCOMM Confidential and Proprietary
111