Motorola T720 Developer's Manual page 39

Hide thumbs Also See for T720:
Table of Contents

Advertisement

Developing for the
Motorola T720 Handset
Title
Problem
Solution
Determining the font size used in the Motorola T720 in various regions.
Different regions use different font sizes in the device. A program
needs to consider the font size when it comes to drawing to the screen
to avoid display errors.
You can use the Java method Font.getHeight() to determine
the size of the visible font for all regions. The method returns the
standard height of a line of text in the current font. The returned value
represents the sum of two different values: font height plus leading.
Font height is the actual height of the characters in the font and leading
is the separation, or distance between two different lines of text as
intended by the font designer and the device. The leading always
occurs below the text.
The returned font height value also takes into account the "zoom in" or
"zoom out" mode setting of the device. The zoom mode is set by the
user and independent of the Java environment. For example, a font
that is returned as 14-points in "zoom out" mode may be returned as
18-points in "zoom in" mode.
39

Advertisement

Table of Contents
loading

Table of Contents