/[debian]/libjgoodies-looks-java/trunk/docs/api/com/jgoodies/looks/Fonts.html
ViewVC logotype

Contents of /libjgoodies-looks-java/trunk/docs/api/com/jgoodies/looks/Fonts.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 558 - (show annotations)
Mon Feb 26 21:28:44 2007 UTC (14 years, 3 months ago) by gregoa
File MIME type: text/html
File size: 31252 byte(s)
* New upstream release.
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2 <!--NewPage-->
3 <HTML>
4 <HEAD>
5 <!-- Generated by javadoc (build 1.5.0_11) on Wed Feb 21 17:54:54 CET 2007 -->
6 <TITLE>
7 Fonts (JGoodies Looks 2.1 API)
8 </TITLE>
9
10 <META NAME="keywords" CONTENT="com.jgoodies.looks.Fonts class">
11
12 <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
13
14 <SCRIPT type="text/javascript">
15 function windowTitle()
16 {
17 parent.document.title="Fonts (JGoodies Looks 2.1 API)";
18 }
19 </SCRIPT>
20 <NOSCRIPT>
21 </NOSCRIPT>
22
23 </HEAD>
24
25 <BODY BGCOLOR="white" onload="windowTitle();">
26
27
28 <!-- ========= START OF TOP NAVBAR ======= -->
29 <A NAME="navbar_top"><!-- --></A>
30 <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
31 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
32 <TR>
33 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
34 <A NAME="navbar_top_firstrow"><!-- --></A>
35 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
36 <TR ALIGN="center" VALIGN="top">
37 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
38 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
39 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
40 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Fonts.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
41 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
42 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
43 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
44 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
45 </TR>
46 </TABLE>
47 </TD>
48 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
49 </EM>
50 </TD>
51 </TR>
52
53 <TR>
54 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
55 &nbsp;<A HREF="../../../com/jgoodies/looks/FontPolicy.html" title="interface in com.jgoodies.looks"><B>PREV CLASS</B></A>&nbsp;
56 &nbsp;<A HREF="../../../com/jgoodies/looks/FontSet.html" title="interface in com.jgoodies.looks"><B>NEXT CLASS</B></A></FONT></TD>
57 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
58 <A HREF="../../../index.html?com/jgoodies/looks/Fonts.html" target="_top"><B>FRAMES</B></A> &nbsp;
59 &nbsp;<A HREF="Fonts.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
60 &nbsp;<SCRIPT type="text/javascript">
61 <!--
62 if(window==top) {
63 document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
64 }
65 //-->
66 </SCRIPT>
67 <NOSCRIPT>
68 <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
69 </NOSCRIPT>
70
71
72 </FONT></TD>
73 </TR>
74 <TR>
75 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
76 SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
77 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
78 DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
79 </TR>
80 </TABLE>
81 <A NAME="skip-navbar_top"></A>
82 <!-- ========= END OF TOP NAVBAR ========= -->
83
84 <HR>
85 <!-- ======== START OF CLASS DATA ======== -->
86 <H2>
87 <FONT SIZE="-1">
88 com.jgoodies.looks</FONT>
89 <BR>
90 Class Fonts</H2>
91 <PRE>
92 <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">java.lang.Object</A>
93 <IMG SRC="../../../resources/inherit.gif" ALT="extended by "><B>com.jgoodies.looks.Fonts</B>
94 </PRE>
95 <HR>
96 <DL>
97 <DT><PRE>public final class <B>Fonts</B><DT>extends <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></DL>
98 </PRE>
99
100 <P>
101 Provides static access to popular Windows fonts.
102 The sizes of the font constants are specified in
103 <em>typographic points</em>, approximately 1/72 of an inch.<p>
104
105 TODO: Consider changing the visibility of the package private methods
106 to public. As an alternative we may provide a FontPolicy that can
107 emulate the font choice on Windows XP/2000 and Windows Vista for
108 different software resolutions (96dpi/120dpi) and desktop font size settings
109 (Normal/Large/Extra Large).
110 <P>
111
112 <P>
113 <DL>
114 <DT><B>Since:</B></DT>
115 <DD>2.0</DD>
116 <DT><B>Version:</B></DT>
117 <DD>$Revision: 1.13 $</DD>
118 <DT><B>Author:</B></DT>
119 <DD>Karsten Lentzsch</DD>
120 <DT><B>See Also:</B><DD><A HREF="../../../com/jgoodies/looks/FontSet.html" title="interface in com.jgoodies.looks"><CODE>FontSet</CODE></A>,
121 <A HREF="../../../com/jgoodies/looks/FontSets.html" title="class in com.jgoodies.looks"><CODE>FontSets</CODE></A>,
122 <A HREF="../../../com/jgoodies/looks/FontPolicy.html" title="interface in com.jgoodies.looks"><CODE>FontPolicy</CODE></A>,
123 <A HREF="../../../com/jgoodies/looks/FontPolicies.html" title="class in com.jgoodies.looks"><CODE>FontPolicies</CODE></A></DL>
124 <HR>
125
126 <P>
127 <!-- =========== FIELD SUMMARY =========== -->
128
129 <A NAME="field_summary"><!-- --></A>
130 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
131 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
132 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
133 <B>Field Summary</B></FONT></TH>
134 </TR>
135 <TR BGCOLOR="white" CLASS="TableRowColor">
136 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
137 <CODE>static&nbsp;<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Font.html" title="class or interface in java.awt">Font</A></CODE></FONT></TD>
138 <TD><CODE><B><A HREF="../../../com/jgoodies/looks/Fonts.html#SEGOE_UI_12PT">SEGOE_UI_12PT</A></B></CODE>
139
140 <BR>
141 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This is Segoe UI 9pt, the default font on western Vista with 96dpi.</TD>
142 </TR>
143 <TR BGCOLOR="white" CLASS="TableRowColor">
144 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
145 <CODE>static&nbsp;<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Font.html" title="class or interface in java.awt">Font</A></CODE></FONT></TD>
146 <TD><CODE><B><A HREF="../../../com/jgoodies/looks/Fonts.html#SEGOE_UI_13PT">SEGOE_UI_13PT</A></B></CODE>
147
148 <BR>
149 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Ascent=14, descent=4, height=18, dbuX=8, dbuY=14, 13dluY=22.75px.</TD>
150 </TR>
151 <TR BGCOLOR="white" CLASS="TableRowColor">
152 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
153 <CODE>static&nbsp;<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Font.html" title="class or interface in java.awt">Font</A></CODE></FONT></TD>
154 <TD><CODE><B><A HREF="../../../com/jgoodies/looks/Fonts.html#SEGOE_UI_15PT">SEGOE_UI_15PT</A></B></CODE>
155
156 <BR>
157 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Ascent=16, descent=5, height=21, dbuX=9, dbuY=16, 13dluY=26px.</TD>
158 </TR>
159 <TR BGCOLOR="white" CLASS="TableRowColor">
160 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
161 <CODE>static&nbsp;<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD>
162 <TD><CODE><B><A HREF="../../../com/jgoodies/looks/Fonts.html#SEGOE_UI_NAME">SEGOE_UI_NAME</A></B></CODE>
163
164 <BR>
165 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The name of the default dialog font on western Windows Vista.</TD>
166 </TR>
167 <TR BGCOLOR="white" CLASS="TableRowColor">
168 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
169 <CODE>static&nbsp;<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Font.html" title="class or interface in java.awt">Font</A></CODE></FONT></TD>
170 <TD><CODE><B><A HREF="../../../com/jgoodies/looks/Fonts.html#TAHOMA_11PT">TAHOMA_11PT</A></B></CODE>
171
172 <BR>
173 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This is the default font on western XP with 96dpi and normal fonts.</TD>
174 </TR>
175 <TR BGCOLOR="white" CLASS="TableRowColor">
176 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
177 <CODE>static&nbsp;<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Font.html" title="class or interface in java.awt">Font</A></CODE></FONT></TD>
178 <TD><CODE><B><A HREF="../../../com/jgoodies/looks/Fonts.html#TAHOMA_13PT">TAHOMA_13PT</A></B></CODE>
179
180 <BR>
181 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Ascent=13, descent=3, height=16, dbuX=8, dbuY=13, 14dluY=22.75px.</TD>
182 </TR>
183 <TR BGCOLOR="white" CLASS="TableRowColor">
184 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
185 <CODE>static&nbsp;<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Font.html" title="class or interface in java.awt">Font</A></CODE></FONT></TD>
186 <TD><CODE><B><A HREF="../../../com/jgoodies/looks/Fonts.html#TAHOMA_14PT">TAHOMA_14PT</A></B></CODE>
187
188 <BR>
189 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Ascent=14, descent=3, height=17, dbuX=8, dbuY=14, 14dluY=24.5px.</TD>
190 </TR>
191 <TR BGCOLOR="white" CLASS="TableRowColor">
192 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
193 <CODE>static&nbsp;<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD>
194 <TD><CODE><B><A HREF="../../../com/jgoodies/looks/Fonts.html#TAHOMA_NAME">TAHOMA_NAME</A></B></CODE>
195
196 <BR>
197 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The name of the default dialog font on western Windows XP.</TD>
198 </TR>
199 <TR BGCOLOR="white" CLASS="TableRowColor">
200 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
201 <CODE>static&nbsp;<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Font.html" title="class or interface in java.awt">Font</A></CODE></FONT></TD>
202 <TD><CODE><B><A HREF="../../../com/jgoodies/looks/Fonts.html#WINDOWS_VISTA_120DPI_NORMAL">WINDOWS_VISTA_120DPI_NORMAL</A></B></CODE>
203
204 <BR>
205 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The default icon font on western Windows Vista with 120dpi
206 and the dialog font desktop setting "Normal".</TD>
207 </TR>
208 <TR BGCOLOR="white" CLASS="TableRowColor">
209 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
210 <CODE>static&nbsp;<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Font.html" title="class or interface in java.awt">Font</A></CODE></FONT></TD>
211 <TD><CODE><B><A HREF="../../../com/jgoodies/looks/Fonts.html#WINDOWS_VISTA_96DPI_LARGE">WINDOWS_VISTA_96DPI_LARGE</A></B></CODE>
212
213 <BR>
214 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The default icon font on western Windows Vista with 96dpi
215 and the dialog font desktop setting "Large".</TD>
216 </TR>
217 <TR BGCOLOR="white" CLASS="TableRowColor">
218 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
219 <CODE>static&nbsp;<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Font.html" title="class or interface in java.awt">Font</A></CODE></FONT></TD>
220 <TD><CODE><B><A HREF="../../../com/jgoodies/looks/Fonts.html#WINDOWS_VISTA_96DPI_NORMAL">WINDOWS_VISTA_96DPI_NORMAL</A></B></CODE>
221
222 <BR>
223 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The default icon font on western Windows Vista with 96dpi
224 and the dialog font desktop setting "Normal".</TD>
225 </TR>
226 <TR BGCOLOR="white" CLASS="TableRowColor">
227 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
228 <CODE>static&nbsp;<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Font.html" title="class or interface in java.awt">Font</A></CODE></FONT></TD>
229 <TD><CODE><B><A HREF="../../../com/jgoodies/looks/Fonts.html#WINDOWS_XP_120DPI_DEFAULT_GUI">WINDOWS_XP_120DPI_DEFAULT_GUI</A></B></CODE>
230
231 <BR>
232 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The default GUI font on western Windows XP with 120dpi
233 and the dialog font desktop setting "Normal".</TD>
234 </TR>
235 <TR BGCOLOR="white" CLASS="TableRowColor">
236 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
237 <CODE>static&nbsp;<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Font.html" title="class or interface in java.awt">Font</A></CODE></FONT></TD>
238 <TD><CODE><B><A HREF="../../../com/jgoodies/looks/Fonts.html#WINDOWS_XP_120DPI_NORMAL">WINDOWS_XP_120DPI_NORMAL</A></B></CODE>
239
240 <BR>
241 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The default icon font on western Windows XP with 120dpi
242 and the dialog font desktop setting "Normal".</TD>
243 </TR>
244 <TR BGCOLOR="white" CLASS="TableRowColor">
245 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
246 <CODE>static&nbsp;<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Font.html" title="class or interface in java.awt">Font</A></CODE></FONT></TD>
247 <TD><CODE><B><A HREF="../../../com/jgoodies/looks/Fonts.html#WINDOWS_XP_96DPI_DEFAULT_GUI">WINDOWS_XP_96DPI_DEFAULT_GUI</A></B></CODE>
248
249 <BR>
250 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The default GUI font on western Windows XP with 96dpi
251 and the dialog font desktop setting "Normal".</TD>
252 </TR>
253 <TR BGCOLOR="white" CLASS="TableRowColor">
254 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
255 <CODE>static&nbsp;<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Font.html" title="class or interface in java.awt">Font</A></CODE></FONT></TD>
256 <TD><CODE><B><A HREF="../../../com/jgoodies/looks/Fonts.html#WINDOWS_XP_96DPI_LARGE">WINDOWS_XP_96DPI_LARGE</A></B></CODE>
257
258 <BR>
259 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The default icon font on western Windows XP with 96dpi
260 and the dialog font desktop setting "Large".</TD>
261 </TR>
262 <TR BGCOLOR="white" CLASS="TableRowColor">
263 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
264 <CODE>static&nbsp;<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Font.html" title="class or interface in java.awt">Font</A></CODE></FONT></TD>
265 <TD><CODE><B><A HREF="../../../com/jgoodies/looks/Fonts.html#WINDOWS_XP_96DPI_NORMAL">WINDOWS_XP_96DPI_NORMAL</A></B></CODE>
266
267 <BR>
268 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The default icon font on western Windows XP with 96dpi
269 and the dialog font desktop setting "Normal".</TD>
270 </TR>
271 </TABLE>
272 &nbsp;
273 <!-- ========== METHOD SUMMARY =========== -->
274
275 <A NAME="method_summary"><!-- --></A>
276 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
277 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
278 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
279 <B>Method Summary</B></FONT></TH>
280 </TR>
281 <TR BGCOLOR="white" CLASS="TableRowColor">
282 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
283 <CODE>static&nbsp;<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Boolean.html" title="class or interface in java.lang">Boolean</A></CODE></FONT></TD>
284 <TD><CODE><B><A HREF="../../../com/jgoodies/looks/Fonts.html#canDisplayLocalizedText(java.awt.Font, java.util.Locale)">canDisplayLocalizedText</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Font.html" title="class or interface in java.awt">Font</A>&nbsp;font,
285 <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Locale.html" title="class or interface in java.util">Locale</A>&nbsp;locale)</CODE>
286
287 <BR>
288 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Checks and answers whether the given font can display text
289 that is localized for the specified locale.</TD>
290 </TR>
291 <TR BGCOLOR="white" CLASS="TableRowColor">
292 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
293 <CODE>static&nbsp;<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Font.html" title="class or interface in java.awt">Font</A></CODE></FONT></TD>
294 <TD><CODE><B><A HREF="../../../com/jgoodies/looks/Fonts.html#getWindowsControlFont()">getWindowsControlFont</A></B>()</CODE>
295
296 <BR>
297 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Looks up and returns the Windows control font.</TD>
298 </TR>
299 </TABLE>
300 &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
301 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
302 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
303 <TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></B></TH>
304 </TR>
305 <TR BGCOLOR="white" CLASS="TableRowColor">
306 <TD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD>
307 </TR>
308 </TABLE>
309 &nbsp;
310 <P>
311
312 <!-- ============ FIELD DETAIL =========== -->
313
314 <A NAME="field_detail"><!-- --></A>
315 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
316 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
317 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
318 <B>Field Detail</B></FONT></TH>
319 </TR>
320 </TABLE>
321
322 <A NAME="TAHOMA_NAME"><!-- --></A><H3>
323 TAHOMA_NAME</H3>
324 <PRE>
325 public static final <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>TAHOMA_NAME</B></PRE>
326 <DL>
327 <DD>The name of the default dialog font on western Windows XP.
328 <P>
329 <DL>
330 <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#com.jgoodies.looks.Fonts.TAHOMA_NAME">Constant Field Values</A></DL>
331 </DL>
332 <HR>
333
334 <A NAME="SEGOE_UI_NAME"><!-- --></A><H3>
335 SEGOE_UI_NAME</H3>
336 <PRE>
337 public static final <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>SEGOE_UI_NAME</B></PRE>
338 <DL>
339 <DD>The name of the default dialog font on western Windows Vista.
340 <P>
341 <DL>
342 <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#com.jgoodies.looks.Fonts.SEGOE_UI_NAME">Constant Field Values</A></DL>
343 </DL>
344 <HR>
345
346 <A NAME="TAHOMA_11PT"><!-- --></A><H3>
347 TAHOMA_11PT</H3>
348 <PRE>
349 public static final <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Font.html" title="class or interface in java.awt">Font</A> <B>TAHOMA_11PT</B></PRE>
350 <DL>
351 <DD>This is the default font on western XP with 96dpi and normal fonts.
352 Ascent=11, descent=3, height=14, dbuX=6, dbuY=12, 14dluY=21px.
353 <P>
354 <DL>
355 </DL>
356 </DL>
357 <HR>
358
359 <A NAME="TAHOMA_13PT"><!-- --></A><H3>
360 TAHOMA_13PT</H3>
361 <PRE>
362 public static final <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Font.html" title="class or interface in java.awt">Font</A> <B>TAHOMA_13PT</B></PRE>
363 <DL>
364 <DD>Ascent=13, descent=3, height=16, dbuX=8, dbuY=13, 14dluY=22.75px.
365 <P>
366 <DL>
367 </DL>
368 </DL>
369 <HR>
370
371 <A NAME="TAHOMA_14PT"><!-- --></A><H3>
372 TAHOMA_14PT</H3>
373 <PRE>
374 public static final <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Font.html" title="class or interface in java.awt">Font</A> <B>TAHOMA_14PT</B></PRE>
375 <DL>
376 <DD>Ascent=14, descent=3, height=17, dbuX=8, dbuY=14, 14dluY=24.5px.
377 <P>
378 <DL>
379 </DL>
380 </DL>
381 <HR>
382
383 <A NAME="SEGOE_UI_12PT"><!-- --></A><H3>
384 SEGOE_UI_12PT</H3>
385 <PRE>
386 public static final <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Font.html" title="class or interface in java.awt">Font</A> <B>SEGOE_UI_12PT</B></PRE>
387 <DL>
388 <DD>This is Segoe UI 9pt, the default font on western Vista with 96dpi.
389 Ascent=13, descent=4, height=17, dbuX=7, dbuY=13, 13dluY=21.125px.
390 <P>
391 <DL>
392 </DL>
393 </DL>
394 <HR>
395
396 <A NAME="SEGOE_UI_13PT"><!-- --></A><H3>
397 SEGOE_UI_13PT</H3>
398 <PRE>
399 public static final <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Font.html" title="class or interface in java.awt">Font</A> <B>SEGOE_UI_13PT</B></PRE>
400 <DL>
401 <DD>Ascent=14, descent=4, height=18, dbuX=8, dbuY=14, 13dluY=22.75px.
402 <P>
403 <DL>
404 </DL>
405 </DL>
406 <HR>
407
408 <A NAME="SEGOE_UI_15PT"><!-- --></A><H3>
409 SEGOE_UI_15PT</H3>
410 <PRE>
411 public static final <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Font.html" title="class or interface in java.awt">Font</A> <B>SEGOE_UI_15PT</B></PRE>
412 <DL>
413 <DD>Ascent=16, descent=5, height=21, dbuX=9, dbuY=16, 13dluY=26px.
414 <P>
415 <DL>
416 </DL>
417 </DL>
418 <HR>
419
420 <A NAME="WINDOWS_XP_96DPI_NORMAL"><!-- --></A><H3>
421 WINDOWS_XP_96DPI_NORMAL</H3>
422 <PRE>
423 public static final <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Font.html" title="class or interface in java.awt">Font</A> <B>WINDOWS_XP_96DPI_NORMAL</B></PRE>
424 <DL>
425 <DD>The default icon font on western Windows XP with 96dpi
426 and the dialog font desktop setting "Normal".
427 <P>
428 <DL>
429 </DL>
430 </DL>
431 <HR>
432
433 <A NAME="WINDOWS_XP_96DPI_DEFAULT_GUI"><!-- --></A><H3>
434 WINDOWS_XP_96DPI_DEFAULT_GUI</H3>
435 <PRE>
436 public static final <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Font.html" title="class or interface in java.awt">Font</A> <B>WINDOWS_XP_96DPI_DEFAULT_GUI</B></PRE>
437 <DL>
438 <DD>The default GUI font on western Windows XP with 96dpi
439 and the dialog font desktop setting "Normal".
440 <P>
441 <DL>
442 </DL>
443 </DL>
444 <HR>
445
446 <A NAME="WINDOWS_XP_96DPI_LARGE"><!-- --></A><H3>
447 WINDOWS_XP_96DPI_LARGE</H3>
448 <PRE>
449 public static final <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Font.html" title="class or interface in java.awt">Font</A> <B>WINDOWS_XP_96DPI_LARGE</B></PRE>
450 <DL>
451 <DD>The default icon font on western Windows XP with 96dpi
452 and the dialog font desktop setting "Large".
453 <P>
454 <DL>
455 </DL>
456 </DL>
457 <HR>
458
459 <A NAME="WINDOWS_XP_120DPI_NORMAL"><!-- --></A><H3>
460 WINDOWS_XP_120DPI_NORMAL</H3>
461 <PRE>
462 public static final <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Font.html" title="class or interface in java.awt">Font</A> <B>WINDOWS_XP_120DPI_NORMAL</B></PRE>
463 <DL>
464 <DD>The default icon font on western Windows XP with 120dpi
465 and the dialog font desktop setting "Normal".
466 <P>
467 <DL>
468 </DL>
469 </DL>
470 <HR>
471
472 <A NAME="WINDOWS_XP_120DPI_DEFAULT_GUI"><!-- --></A><H3>
473 WINDOWS_XP_120DPI_DEFAULT_GUI</H3>
474 <PRE>
475 public static final <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Font.html" title="class or interface in java.awt">Font</A> <B>WINDOWS_XP_120DPI_DEFAULT_GUI</B></PRE>
476 <DL>
477 <DD>The default GUI font on western Windows XP with 120dpi
478 and the dialog font desktop setting "Normal".
479 <P>
480 <DL>
481 </DL>
482 </DL>
483 <HR>
484
485 <A NAME="WINDOWS_VISTA_96DPI_NORMAL"><!-- --></A><H3>
486 WINDOWS_VISTA_96DPI_NORMAL</H3>
487 <PRE>
488 public static final <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Font.html" title="class or interface in java.awt">Font</A> <B>WINDOWS_VISTA_96DPI_NORMAL</B></PRE>
489 <DL>
490 <DD>The default icon font on western Windows Vista with 96dpi
491 and the dialog font desktop setting "Normal".
492 <P>
493 <DL>
494 </DL>
495 </DL>
496 <HR>
497
498 <A NAME="WINDOWS_VISTA_96DPI_LARGE"><!-- --></A><H3>
499 WINDOWS_VISTA_96DPI_LARGE</H3>
500 <PRE>
501 public static final <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Font.html" title="class or interface in java.awt">Font</A> <B>WINDOWS_VISTA_96DPI_LARGE</B></PRE>
502 <DL>
503 <DD>The default icon font on western Windows Vista with 96dpi
504 and the dialog font desktop setting "Large".
505 <P>
506 <DL>
507 </DL>
508 </DL>
509 <HR>
510
511 <A NAME="WINDOWS_VISTA_120DPI_NORMAL"><!-- --></A><H3>
512 WINDOWS_VISTA_120DPI_NORMAL</H3>
513 <PRE>
514 public static final <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Font.html" title="class or interface in java.awt">Font</A> <B>WINDOWS_VISTA_120DPI_NORMAL</B></PRE>
515 <DL>
516 <DD>The default icon font on western Windows Vista with 120dpi
517 and the dialog font desktop setting "Normal".
518 <P>
519 <DL>
520 </DL>
521 </DL>
522
523 <!-- ============ METHOD DETAIL ========== -->
524
525 <A NAME="method_detail"><!-- --></A>
526 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
527 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
528 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
529 <B>Method Detail</B></FONT></TH>
530 </TR>
531 </TABLE>
532
533 <A NAME="getWindowsControlFont()"><!-- --></A><H3>
534 getWindowsControlFont</H3>
535 <PRE>
536 public static <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Font.html" title="class or interface in java.awt">Font</A> <B>getWindowsControlFont</B>()</PRE>
537 <DL>
538 <DD>Looks up and returns the Windows control font. Returns the Windows icon
539 title font unless it is inappropriate for the Windows version,
540 Java renderer, or locale.<p>
541
542 The icon title font scales with the resolution (96dpi, 101dpi, 120dpi, etc)
543 and the desktop font size settings (normal, large, extra large).
544 Older versions may return a poor font. Also, since Java 1.4 and Java 5
545 render the Windows Vista icon font Segoe UI poorly,
546 we return the default GUI font in these environments.<p>
547
548 The last check is, if the icon font can display text in the
549 default locale. Therefore we test if the locale's localized display name
550 can be displayed by the icon font. For example, Tahoma can display
551 "English", "Deutsch", but not the display name for "Chinese" in Chinese.
552 <P>
553 <DD><DL>
554
555 <DT><B>Returns:</B><DD>the Windows control font
556 <DT><B>Throws:</B>
557 <DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/UnsupportedOperationException.html" title="class or interface in java.lang">UnsupportedOperationException</A></CODE> - on non-Windows platforms</DL>
558 </DD>
559 </DL>
560 <HR>
561
562 <A NAME="canDisplayLocalizedText(java.awt.Font, java.util.Locale)"><!-- --></A><H3>
563 canDisplayLocalizedText</H3>
564 <PRE>
565 public static <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Boolean.html" title="class or interface in java.lang">Boolean</A> <B>canDisplayLocalizedText</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Font.html" title="class or interface in java.awt">Font</A>&nbsp;font,
566 <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Locale.html" title="class or interface in java.util">Locale</A>&nbsp;locale)</PRE>
567 <DL>
568 <DD>Checks and answers whether the given font can display text
569 that is localized for the specified locale.
570 Returns <code>null</code> if we can't test it.<p>
571
572 First checks, if the locale's display language is available
573 in localized form, for example "Deutsch" for the German locale.
574 If so, we check if the given font can display the localized
575 display language.<p>
576
577 Otherwise we check some known combinations of fonts and locales
578 and return the associated results. For all other combinations,
579 <code>null</code> is returned to indicate that we don't know
580 whether the font can display text in the given locale.
581 <P>
582 <DD><DL>
583 <DT><B>Parameters:</B><DD><CODE>font</CODE> - the font to be tested<DD><CODE>locale</CODE> - the locale to be used
584 <DT><B>Returns:</B><DD><code>Boolean.TRUE</code> if the font can display the locale's text,
585 <code>Boolean.FALSE</code> if not,
586 <code>null</code> if we don't know<DT><B>Since:</B></DT>
587 <DD>2.0.4</DD>
588 </DL>
589 </DD>
590 </DL>
591 <!-- ========= END OF CLASS DATA ========= -->
592 <HR>
593
594
595 <!-- ======= START OF BOTTOM NAVBAR ====== -->
596 <A NAME="navbar_bottom"><!-- --></A>
597 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
598 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
599 <TR>
600 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
601 <A NAME="navbar_bottom_firstrow"><!-- --></A>
602 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
603 <TR ALIGN="center" VALIGN="top">
604 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
605 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
606 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
607 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Fonts.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
608 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
609 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
610 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
611 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
612 </TR>
613 </TABLE>
614 </TD>
615 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
616 </EM>
617 </TD>
618 </TR>
619
620 <TR>
621 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
622 &nbsp;<A HREF="../../../com/jgoodies/looks/FontPolicy.html" title="interface in com.jgoodies.looks"><B>PREV CLASS</B></A>&nbsp;
623 &nbsp;<A HREF="../../../com/jgoodies/looks/FontSet.html" title="interface in com.jgoodies.looks"><B>NEXT CLASS</B></A></FONT></TD>
624 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
625 <A HREF="../../../index.html?com/jgoodies/looks/Fonts.html" target="_top"><B>FRAMES</B></A> &nbsp;
626 &nbsp;<A HREF="Fonts.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
627 &nbsp;<SCRIPT type="text/javascript">
628 <!--
629 if(window==top) {
630 document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
631 }
632 //-->
633 </SCRIPT>
634 <NOSCRIPT>
635 <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
636 </NOSCRIPT>
637
638
639 </FONT></TD>
640 </TR>
641 <TR>
642 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
643 SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
644 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
645 DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
646 </TR>
647 </TABLE>
648 <A NAME="skip-navbar_bottom"></A>
649 <!-- ======== END OF BOTTOM NAVBAR ======= -->
650
651 <HR>
652 Copyright &#169; 2001-2007 JGoodies Karsten Lentzsch. All Rights Reserved.
653 </BODY>
654 </HTML>

  ViewVC Help
Powered by ViewVC 1.1.26