jQuery in Action, 2nd edition*
The moose likes Beginning Java and the fly likes java fonts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "java fonts" Watch "java fonts" New topic
Author

java fonts

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
hello
i want to use times new roman fonts, but I dont know how to set up the font.properties.
I am using linux redhat 8 and have alway basic fonts in my generated pdf file.
can someone help me?
Barry Burd
Author
Ranch Hand

Joined: Jun 18, 2003
Posts: 118
    
    5

Have you tried a statement like
setFont(new Font("Times",Font.BOLD,24));
from the java.awt.Font class?


Java For Dummies, 6th Edition, Java Programming for Android Developers For Dummies
 
 
subject: java fonts
 
Similar Threads
Bitstream .PFR Fonts
What UML Tool(s) are you using for SCEA Beta Part II?
How to use fonts other than OS provided fonts.
how to change fonts
Including fonts in PDFs using iText