Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Swing Font, it's Java Font? ot native? how install new font?

Reply
Thread Tools

Swing Font, it's Java Font? ot native? how install new font?

 
 
mttc
Guest
Posts: n/a
 
      07-03-2009
Font from Swing controls, is native (windows) font, or it's not use
with window API to draw the font on the screen?
if not, where I can see what font available on my Java system? and how
I can install new one, or maybe install Window Font?
 
Reply With Quote
 
 
 
 
markspace
Guest
Posts: n/a
 
      07-03-2009
mttc wrote:
> Font from Swing controls, is native (windows) font, or it's not use
> with window API to draw the font on the screen?



I think both. Java has it's own fonts, and it will use the native
(Windows) ones too.


> if not, where I can see what font available on my Java system?


<http://java.sun.com/javase/6/docs/api/java/awt/GraphicsEnvironment.html#getAvailableFontFamilyNam es()>


> and how
> I can install new one, or maybe install Window Font?



Not sure about this. An aged document I found suggests that new Java
fonts go in the the jre/lib/font directory. I haven't looked at this
any further however. To install a font for you OS, follow its vendor's
instructions.

<http://java.sun.com/j2se/1.3/docs/guide/intl/addingfonts.html>
 
Reply With Quote
 
 
 
 
Roedy Green
Guest
Posts: n/a
 
      07-03-2009
On Fri, 3 Jul 2009 09:05:24 -0700 (PDT), mttc <(E-Mail Removed)>
wrote, quoted or indirectly quoted someone who said :

>Font from Swing controls, is native (windows) font, or it's not use
>with window API to draw the font on the screen?
>if not, where I can see what font available on my Java system? and how
>I can install new one, or maybe install Window Font?


see http://mindprod.com/applet/fontshower.html
http://mindprod.com/jgloss/font.html

All you need do is install a TrueType font on Windows.
--
Roedy Green Canadian Mind Products
http://mindprod.com

"Out of 135 criminals, including robbers and rapists, 118 admitted that when they were children they burned, hanged and stabbed domestic animals."
~ Ogonyok Magazine 1979.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Why not using javax.swing.event with swing? S.T Java 2 05-25-2007 12:10 AM
javax.swing.Popup, javax.swing.PopupFactory lizard Java 0 01-30-2006 09:34 PM
Swing Model Classes Updating Swing Components on a Thread Other Than AWT mkrause Java 0 05-06-2005 04:32 PM
Java 1.2 Swing vs. Java 1.5 Swing Big Daddy Java 2 04-16-2005 01:14 PM



Advertisments