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

Contents of /libjgoodies-looks-java/branches/upstream/current/docs/api/com/jgoodies/looks/Fonts.html

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.26