Article View: borland.public.jbuilder.java.api
Article #1082Re: Font ?
From: John McGrath TeamB
Date: Tue, 11 Jun 2002 12:45
Date: Tue, 11 Jun 2002 12:45
30 lines
1960 bytes
1960 bytes
On Tue, 11 Jun 2002 10:16:53 -0000, "dinbo" <dinbo<NOSPAM>@wanadoo.fr>
wrote:
> In an application displaying of cards HTML in JTextPane
> (with HTMLEditorKit), I would wish to display text in a
> particular character font (for example Webdings).
>
> How then I to declare this character font in my application?
You need to specify an AttributeSet for the characters, which can
include a font. You can insert characters with a given AttributeSet
and you can modify the AttributeSet for existing characters.
Swing text processing is a fairly complex topic. I hear one of the
best books on the subject is "Core Swing: Advanced Programming" by
Kim Topley:
http://www.amazon.com/exec/obidos/ASIN/0130832928/qid=1023799233
I have not read this book, but Topley's earlier Swing book was very
good and I have heard good things about this one.
--
Regards,
John McGrath [TeamB]
---------------------------------------------------
Before sending me e-mail, please read:
http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID:
<MPG.176fbabc8ecaac9f98b6c7@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!supernews.com!newsfeed.ision.net!ision!fr.usenet-edu.net!usenet-edu.net!proxad.net!proxad.net!news-hub.cableinet.net!blueyonder!newsfeed1.cidera.com!Cidera!news.maxwell.syr.edu!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnewsReferences:
<3d05b1c8_1@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,20b8c6020ab63d56 X-Google-Attributes: gid1089d0,public X-Google-ArrivalTime: 2002-06-11 06:00:35 PST From: John McGrath [TeamB] <ng-b@JPMcGrath.net> Newsgroups: borland.public.jbuilder.java.api Subject: Re: Font ? Date: Tue, 11 Jun 2002 08:45:04 -0400 Message-ID: <MPG.176fbabc8ecaac9f98b6c7@newsgroups.borland.com> References: <3d05b1c8_1@dnews> X-Newsreader: MicroPlanet Gravity v2.60 NNTP-Posting-Host: 209.92.40.60 X-Trace: dnews 1023799503 209.92.40.60 (11 Jun 2002 05:45:03 -0700) Lines: 30 X-Authenticated-User: jpmcgrath Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!supernews.com!newsfeed.ision.net!ision!fr.usenet-edu.net!usenet-edu.net!proxad.net!proxad.net!news-hub.cableinet.net!blueyonder!newsfeed1.cidera.com!Cidera!news.maxwell.syr.edu!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews