A P P E N D I X  A

Font Resources

The MIDP profile provides a variety of fonts, which are defined in the class FontResources for easy representation and loading. Each font is defined using a unique numeric identifier, which is assigned using a face_style_size naming scheme.

Using different combinations of face, style, and size, it is possible to define and use up to 72 different fonts in the MIDP profile.



Note - The frame buffer (fb) platform (for example, linux_fb) supports only a single font style. It is not possible to customize the font style of your skin on this platform.



TABLE A-1 lists the naming elements of face, style, and size and the different options and identifiers available for them.


TABLE A-1 Font Elements in MIDP Naming Scheme

Naming Element

Available Options

Identifier

face

Monospace

MONO

 

Proportional

PROP

 

System

SYS

style

Plain

P

 

Italic

I

 

Bold

B

 

Bold Italic

BI

 

Underline

U

 

Underline Italic

UI

 

Underline Bold

UB

 

Underline Bold Italic

UBI

size

Small

S

 

Medium

M

 

Large

L


A commonly used font, such as medium-sized plain monospace, is represented as MONO_P_M and assigned a unique identifier of 200, as shown in TABLE A-2.

The remainder of this appendix provides the font descriptions and unique identifiers for each available MIDP font, presented by primary face type (Monospace in TABLE A-2, Proportional in TABLE A-3, and System in TABLE A-4).


TABLE A-2 Numeric Identifiers for Monospace Fonts

Font Description

Identifier

Monospace, plain, small

MONO_P_S=100

Monospace, italic, small

MONO_I_S=101

Monospace, bold, small

MONO_B_S=102

Monospace, bold italic, small

MONO_BI_S=103

Monospace, underline, small

MONO_U_S=104

Monospace, underline italic, small

MONO_UI_S=105

Monospace, underline bold, small

MONO_UB_S=106

Monospace, underline bold italic, small

MONO_UBI_S=107

Monospace, plain, medium

MONO_P_M=200

Monospace, italic, medium

MONO_I_M=201

Monospace, bold, medium

MONO_B_M=202

Monospace, bold italic, medium

MONO_BI_M=203

Monospace, underline, medium

MONO_U_M=204

Monospace, underline italic, medium

MONO_UI_M=205

Monospace, underline bold, medium

MONO_UB_M=206

Monospace, underline bold italic, medium

MONO_UBI_M=207

Monospace, plain, large

MONO_P_L=300

Monospace, italic, large

MONO_I_L=301

Monospace, bold, large

MONO_B_L=302

Monospace, bold italic, large

MONO_BI_L=303

Monospace, underline, large

MONO_U_L=304

Monospace, underline italic, large

MONO_UI_L=305

Monospace, underline bold, large

MONO_UB_L=306

Monospace, underline bold italic, large

MONO_UBI_L=307



TABLE A-3 Numeric Identifiers for Proportional Fonts

Font Description

Identifier

Proportional, plain, small

PROP_P_S=400

Proportional, italic, small

PROP_I_S=401

Proportional, bold, small

PROP_B_S=402

Proportional, bold italic, small

PROP_BI_S=403

Proportional, underline, small

PROP_U_S=404

Proportional, underline italic, small

PROP_UI_S=405

Proportional, underline bold, small

PROP_UB_S=406

Proportional, underline bold italic, small

PROP_UBI_S=407

Proportional, plain, medium

PROP_P_M=500

Proportional, italic, medium

PROP_I_M=501

Proportional, bold, medium

PROP_B_M=502

Proportional, bold italic, medium

PROP_BI_M=503

Proportional, underline, medium

PROP_U_M=504

Proportional, underline italic, medium

PROP_UI_M=505

Proportional, underline bold, medium

PROP_UB_M=506

Proportional, underline bold italic, medium

PROP_UBI_M=507

Proportional, plain, large

PROP_P_L=600

Proportional, italic, large

PROP_I_L=601

Proportional, bold, large

PROP_B_L=602

Proportional, bold italic, large

PROP_BI_L=603

Proportional, underline, large

PROP_U_L=604

Proportional, underline italic, large

PROP_UI_L=605

Proportional, underline bold, large

PROP_UB_L=606

Proportional, underline bold italic, large

PROP_UBI_L=607



TABLE A-4 Numeric Identifiers for System Fonts

Font Description

Identifier

System, plain, small

SYS_P_S=700

System, italic, small

SYS_I_S=701

System, bold, small

SYS_B_S=702

System, bold italic, small

SYS_BI_S=703

System, underline, small

SYS_U_S=704

System, underline italic, small

SYS_UI_S=705

System, underline bold, small

SYS_UB_S=706

System, underline bold italic, small

SYS_UBI_S=707

System, plain, medium

SYS_P_M=800

System, italic, medium

SYS_I_M=801

System, bold, medium

SYS_B_M=802

System, bold italic, medium

SYS_BI_M=803

System, underline, medium

SYS_U_M=804

System, underline italic, medium

SYS_UI_M=805

System, underline bold, medium

SYS_UB_M=806

System, underline bold italic, medium

SYS_UBI_M =807

System, plain, large

SYS_P_L=900

System, italic, large

SYS_I_L=901

System, bold, large

SYS_B_L=902

System, bold italic, large

SYS_BI_L=903

System, underline, large

SYS_U_L=904

System, underline italic, large

SYS_UI_L=905

System, underline bold, large

SYS_UB_L=906

System, underline bold italic, large

SYS_UBI_L=907