Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

java fonts  RSS feed

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 133
10
Android Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you tried a statement like
setFont(new Font("Times",Font.BOLD,24));
from the java.awt.Font class?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!