Article View: borland.public.jbuilder.java.api
Article #2483A biiiiiiiiiiiiiiig Problem with fonts
From: Lorenzo
Date: Tue, 14 Nov 2000 00:00
Date: Tue, 14 Nov 2000 00:00
29 lines
1467 bytes
1467 bytes
Hi all,
I want to use the Font IsoLatin in an application.
I have a files TTF for this font.
I have placed this file in the directory jre\lib\fonts.
When I invoke the font IsoLatin as :
Font f = new Font("IsoLatin", Font.PLAIN,10);
and I use :
g.setFont(f);
g.drawString("Hello World", 10 , 10);
the result for the "Hello World" is as if I had not called "g.setFont(f);"
The font IsoLatin doesn't seem taken by the jre.
A solution could be the next:
If I copy the file TTF in Windows NT(c:\winnt\fonts), the result is good.
But, This solution is not interresting because I want to install my
application in Windows98/NT and Linux.
Please, Help me , What should I do to insert my Font.
Thanks for your help.
Laurent
Technical Details
Message-ID:
<8urjqb$l7i$1@s1.read.news.oleane.net>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,c47b070df84028f6,start X-Google-Attributes: gid1089d0,public From: "Lorenzo" <lchateau@hotmail.com> Subject: A biiiiiiiiiiiiiiig Problem with fonts Date: 2000/11/14 Message-ID: <8urjqb$l7i$1@s1.read.news.oleane.net> X-Deja-AN: 693498912 X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 X-Complaints-To: abuse@oleane.net X-Trace: s1.read.news.oleane.net 974213771 21746 194.4.224.206 (14 Nov 2000 14:56:11 GMT) Organization: Guest of France Telecom Oleane's newsreading service X-MSMail-Priority: Normal NNTP-Posting-Date: Tue, 14 Nov 2000 14:56:11 +0000 (UTC) Newsgroups: borland.public.jbuilder.java.api