Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JavaFX GraphicsContext change text size

 
Carl Bernardi
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would like to be able to change the font size and possibly the font itself before the strokeText() method is called. I can change the color but I don't see anyway to change the font.



Anyone know how to do this?
 
Carl Bernardi
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I found what I was looking for. Use the method setFont(Font f.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic