🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Fonts

#10361
From: Wilco Ibes
Date: Fri, 08 Oct 1999 00:00
15 lines
1274 bytes
Hi,

I would like to use my own (custom) fonts in a Java/Swing-application I'm
developing; so instead of depending on system fonts (-> you never know
what's available, and there's hardly any freedom), I would like to put some
TTF or Type1 fonts in a directory, locate them at runtime and use them in my
program (without having to register them as system fonts).

This is possible in Win32/GDI (and very easy to implement: you just find,
load and lock the font resource, use it and then release it when you don't
need it anymore), but I have no clue on how to implement this in Java/Swing.

Please help! TIA!!

Wilco
Technical Details
Message-ID: <7tj9ea$d8i$1@news.worldonline.nl>
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,30e7b28ad47b044e,start
X-Google-Attributes: gid111d45,public
From: "Wilco Ibes" <*atlantis*@worldonline.nl>
Subject: Fonts
Date: 1999/10/08
Message-ID: <7tj9ea$d8i$1@news.worldonline.nl>
X-Deja-AN: 534113927
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
X-Complaints-To: newsmaster@worldonline.nl
X-Trace: news.worldonline.nl 939337994 13586 195.241.201.98 (7 Oct 1999 23:13:14 GMT)
Organization: WorldOnline News server
X-MSMail-Priority: Normal
NNTP-Posting-Date: 7 Oct 1999 23:13:14 GMT
Newsgroups: borland.public.jbuilder.java.swing