🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #7953

A biiiiiiiiiiiiiiig Problem with fonts

#7953
From: Lorenzo
Date: Tue, 14 Nov 2000 00:00
29 lines
1469 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: <8urjs3$l87$1@s1.read.news.oleane.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,bcc31dbeb11a3aa7,start
X-Google-Attributes: gid111d45,public
From: "Lorenzo" <lchateau@hotmail.com>
Subject: A biiiiiiiiiiiiiiig Problem with fonts
Date: 2000/11/14
Message-ID: <8urjs3$l87$1@s1.read.news.oleane.net>
X-Deja-AN: 693498916
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 974213828 21767 194.4.224.206 (14 Nov 2000 14:57:08 GMT)
Organization: Guest of France Telecom Oleane's newsreading service
X-MSMail-Priority: Normal
NNTP-Posting-Date: Tue, 14 Nov 2000 14:57:08 +0000 (UTC)
Newsgroups: borland.public.jbuilder.java.swing