Article View: borland.public.jbuilder.java.language
Article #559Re: How to set which fonts to use when the default is missing
From: John McGrath [TeamB]
Date: Fri, 04 Mar 2005 21:30
Date: Fri, 04 Mar 2005 21:30
18 lines
1552 bytes
1552 bytes
On 3/4/2005 at 5:24:17 AM, Katerina K. wrote:
> If the PC that the application is installed does not have this specific
> font, then java automatically uses the default font "Dialog". How can I
> create an exception when this happens, in order to set myself the font
> that I want to use (one of the default ones), instead of the program
> doing it automatically?
You could try checking the result getFontName() on the returned font.
--
Regards,
John McGrath [TeamB]
---------------------------------------------------
Before sending me e-mail, please read:
http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID:
<xn0dzcvyy2x90k400e@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<42283751$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: f74b3,2987ed43b256ce67 X-Google-Attributes: gidf74b3,public X-Google-Language: ENGLISH,ASCII-7-bit From: "John McGrath [TeamB]" <ng-b@JPMcGrath.net> Subject: Re: How to set which fonts to use when the default is missing Newsgroups: borland.public.jbuilder.java.language References: <42283751$1@newsgroups.borland.com> User-Agent: XanaNews/1.17.2.7 Message-ID: <xn0dzcvyy2x90k400e@newsgroups.borland.com> X-Ref: newsgroups.borland.com ~XNS:0000023F MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 NNTP-Posting-Host: 151.197.237.191 Date: 4 Mar 2005 13:30:52 -0800 X-Trace: newsgroups.borland.com 1109971852 151.197.237.191 (4 Mar 2005 13:30:52 -0800) Lines: 18 X-Authenticated-User: jpmcgrath Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail