beautypg.com

Default font, System fonts, Bitmap fonts – Sun Microsystems Computer Accessories User Manual

Page 34

background image

20

Wireless Toolkit Basic Customization Guide • December 2003

The font definition is according to the format for describing a system font (see

“System Fonts” on page 20

) or a bitmap font (see

“Bitmap Fonts” on page 20

).

Example

font.system.italic.small: Helvetica-italic-9

The default font (see

“Default Font

”) is used for any MIDP font combination that is

not defined.

Default Font

A default font must be specified. This font is used in all cases where no other
definition was given.

The default font is specified as follows:

font.default = <

font_properties_filename

> |

Example

font.default = Arial-plain-12

System Fonts

A system font definition is in the standard Java format for specifying such a font.
For details, see

http://java.sun.com/j2se/1.4/docs/api/java/awt/Font.html

.

You can tell the Emulator to use the resident PC fonts to display text on the device
screen.

Use the font specification in the form:

font.<

name

> =

Example

font.softButton = Arial-plain-12

Bitmap Fonts

To tell the Emulator to use a bitmap font, you need to specify a font property file
that describes the font:

font.<

font_name

> = <

font_property_filename

>