• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to get all the fonts supported by an os  RSS feed

 
sushant prabhu
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is there a way to get the type of font faces supported by an op;erating system
 
Sreenivasa Majji
Ranch Hand
Posts: 224
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes. I have an applet which shows all the fonts available in the OS.

Originally posted by sushant prabhu:
is there a way to get the type of font faces supported by an op;erating system


------------------
Sreenivasa Kumar Majji
Sun Certified Java Programmer
SCJP Mock Test
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Font font[] = GraphicsEnvironment.getLocalGraphicsEnvironment().getAllFonts();
This will get all the fonts regestered on someones OS.
------------------
Happy Coding,
Gregg Bolinger
 
Sreenivasa Majji
Ranch Hand
Posts: 224
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I tried this approach
String fontList[] = GraphicsEnvironment.getLocalGraphicsEnvironment().getAvailableFontFamilyNames();

Originally posted by Gregg Bolinger:
Font font[] = GraphicsEnvironment.getLocalGraphicsEnvironment().getAllFonts();
This will get all the fonts regestered on someones OS.


------------------
Sreenivasa Kumar Majji
Sun Certified Java Programmer
SCJP Mock Test
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!