001: /*
002: * Copyright 1990-2007 Sun Microsystems, Inc. All Rights Reserved.
003: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER
004: *
005: * This program is free software; you can redistribute it and/or
006: * modify it under the terms of the GNU General Public License version
007: * 2 only, as published by the Free Software Foundation.
008: *
009: * This program is distributed in the hope that it will be useful, but
010: * WITHOUT ANY WARRANTY; without even the implied warranty of
011: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
012: * General Public License version 2 for more details (a copy is
013: * included at /legal/license.txt).
014: *
015: * You should have received a copy of the GNU General Public License
016: * version 2 along with this work; if not, write to the Free Software
017: * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
018: * 02110-1301 USA
019: *
020: * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
021: * Clara, CA 95054 or visit www.sun.com if you need additional
022: * information or have any questions.
023: */
024:
025: package com.sun.midp.chameleon.skins.resources;
026:
027: /**
028: * There are three different font faces available in MIDP:
029: * Monospace, Proportional, and System. There are eight
030: * different styles available: Plain, Italic, Bold, Bold Italic,
031: * Underline, Underline Italic, Underline Bold, and
032: * Underline Bold Italic. There are three different sizes
033: * available: Small, Medium, and Large. That presents
034: * a matrix of 72 different font possibilities. This class
035: * defines a numeric identifer to each one for easy representation
036: * and loading.
037: *
038: * Identifiers use a FACE_STYLE_SIZE naming scheme, where
039: * FACE is one of [MONO|PROP|SYS], STYLE is one of
040: * [P|I|B|BI|U|UI|UB|UBI], and SIZE is one of [S|M|L].
041: */
042: public class FontResourcesConstants {
043:
044: /** Monospaced, plain, small */
045: public static final int MONO_P_S = 100;
046: /** Monospaced, italic, small */
047: public static final int MONO_I_S = 101;
048: /** Monospaced, bold, small */
049: public static final int MONO_B_S = 102;
050: /** Monospaced, bold italic, small */
051: public static final int MONO_BI_S = 103;
052: /** Monospaced, underline, small */
053: public static final int MONO_U_S = 104;
054: /** Monospaced, underline italic, small */
055: public static final int MONO_UI_S = 105;
056: /** Monospaced, underline bold, small */
057: public static final int MONO_UB_S = 106;
058: /** Monospaced, underline bold italic, small */
059: public static final int MONO_UBI_S = 107;
060:
061: /** Monospaced, plain, medium */
062: public static final int MONO_P_M = 200;
063: /** Monospaced, italic, medium */
064: public static final int MONO_I_M = 201;
065: /** Monospaced, bold, medium */
066: public static final int MONO_B_M = 202;
067: /** Monospaced, bold italic, medium */
068: public static final int MONO_BI_M = 203;
069: /** Monospaced, underline, medium */
070: public static final int MONO_U_M = 204;
071: /** Monospaced, underline italic, medium */
072: public static final int MONO_UI_M = 205;
073: /** Monospaced, underline bold, medium */
074: public static final int MONO_UB_M = 206;
075: /** Monospaced, underline bold italic, medium */
076: public static final int MONO_UBI_M = 207;
077:
078: /** Monospaced, plain, large */
079: public static final int MONO_P_L = 300;
080: /** Monospaced, italic, large */
081: public static final int MONO_I_L = 301;
082: /** Monospaced, bold, large */
083: public static final int MONO_B_L = 302;
084: /** Monospaced, bold italic, large */
085: public static final int MONO_BI_L = 303;
086: /** Monospaced, underline, large */
087: public static final int MONO_U_L = 304;
088: /** Monospaced, underline italic, large */
089: public static final int MONO_UI_L = 305;
090: /** Monospaced, underline bold, large */
091: public static final int MONO_UB_L = 306;
092: /** Monospaced, underline bold italic, large */
093: public static final int MONO_UBI_L = 307;
094:
095: /** Proportional, plain, small */
096: public static final int PROP_P_S = 400;
097: /** Proportional, italic, small */
098: public static final int PROP_I_S = 401;
099: /** Proportional, bold, small */
100: public static final int PROP_B_S = 402;
101: /** Proportional, bold italic, small */
102: public static final int PROP_BI_S = 403;
103: /** Proportional, underline, small */
104: public static final int PROP_U_S = 404;
105: /** Proportional, underline italic, small */
106: public static final int PROP_UI_S = 405;
107: /** Proportional, underline bold, small */
108: public static final int PROP_UB_S = 406;
109: /** Proportional, underline bold italic, small */
110: public static final int PROP_UBI_S = 407;
111:
112: /** Proportional, plain, medium */
113: public static final int PROP_P_M = 500;
114: /** Proportional, italic, medium */
115: public static final int PROP_I_M = 501;
116: /** Proportional, bold, medium */
117: public static final int PROP_B_M = 502;
118: /** Proportional, bold italic, medium */
119: public static final int PROP_BI_M = 503;
120: /** Proportional, underline, medium */
121: public static final int PROP_U_M = 504;
122: /** Proportional, underline italic, medium */
123: public static final int PROP_UI_M = 505;
124: /** Proportional, underline bold, medium */
125: public static final int PROP_UB_M = 506;
126: /** Proportional, underline bold italic, medium */
127: public static final int PROP_UBI_M = 507;
128:
129: /** Proportional, plain, large */
130: public static final int PROP_P_L = 600;
131: /** Proportional, italic, large */
132: public static final int PROP_I_L = 601;
133: /** Proportional, bold, large */
134: public static final int PROP_B_L = 602;
135: /** Proportional, bold italic, large */
136: public static final int PROP_BI_L = 603;
137: /** Proportional, underline, large */
138: public static final int PROP_U_L = 604;
139: /** Proportional, underline italic, large */
140: public static final int PROP_UI_L = 605;
141: /** Proportional, underline bold, large */
142: public static final int PROP_UB_L = 606;
143: /** Proportional, underline bold italic, large */
144: public static final int PROP_UBI_L = 607;
145:
146: /** System, plain, small */
147: public static final int SYS_P_S = 700;
148: /** System, italic, small */
149: public static final int SYS_I_S = 701;
150: /** System, bold, small */
151: public static final int SYS_B_S = 702;
152: /** System, bold italic, small */
153: public static final int SYS_BI_S = 703;
154: /** System, underline, small */
155: public static final int SYS_U_S = 704;
156: /** System, underline italic, small */
157: public static final int SYS_UI_S = 705;
158: /** System, underline bold, small */
159: public static final int SYS_UB_S = 706;
160: /** System, underline bold italic, small */
161: public static final int SYS_UBI_S = 707;
162:
163: /** System, plain, medium */
164: public static final int SYS_P_M = 800;
165: /** System, italic, medium */
166: public static final int SYS_I_M = 801;
167: /** System, bold, medium */
168: public static final int SYS_B_M = 802;
169: /** System, bold italic, medium */
170: public static final int SYS_BI_M = 803;
171: /** System, underline, medium */
172: public static final int SYS_U_M = 804;
173: /** System, underline italic, medium */
174: public static final int SYS_UI_M = 805;
175: /** System, underline bold, medium */
176: public static final int SYS_UB_M = 806;
177: /** System, underline bold italic, medium */
178: public static final int SYS_UBI_M = 807;
179:
180: /** System, plain, large */
181: public static final int SYS_P_L = 900;
182: /** System, italic, large */
183: public static final int SYS_I_L = 901;
184: /** System, bold, large */
185: public static final int SYS_B_L = 902;
186: /** System, bold italic, large */
187: public static final int SYS_BI_L = 903;
188: /** System, underline, large */
189: public static final int SYS_U_L = 904;
190: /** System, underline italic, large */
191: public static final int SYS_UI_L = 905;
192: /** System, underline bold, large */
193: public static final int SYS_UB_L = 906;
194: /** System, underline bold italic, large */
195: public static final int SYS_UBI_L = 907;
196: }
|