File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JavaFX and the fly likes JavaFX GraphicsContext change text size Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » JavaFX
Bookmark "JavaFX GraphicsContext change text size" Watch "JavaFX GraphicsContext change text size" New topic
Author

JavaFX GraphicsContext change text size

Carl Bernardi
Greenhorn

Joined: Jan 15, 2013
Posts: 23
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

Joined: Jan 15, 2013
Posts: 23
I found what I was looking for. Use the method setFont(Font f.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JavaFX GraphicsContext change text size
 
Similar Threads
JeditorPane Font
Really meaningless but...
font size and style
font size, and dialogbox
MenuItem font setting