Class Font

java.lang.Object
javafx.scene.text.Font

public final class Font extends Object

The Font class represents fonts, which are used to render text on screen.

The size of a Font is described as being specified in points which are a real world measurement of approximately 1/72 inch.

Given that fonts scale with the rendering transform as determined by the transform attributes of a Node using the Font and its ancestors, the size will actually be relative to the local coordinate space of the node, which should provide coordinates similar to the size of a point if no scaling transforms are present in the environment of the node. Note that the real world distances specified by the default coordinate system only approximate point sizes as a rule of thumb and are typically defaulted to screen pixels for most displays.

For more information see Node for more information on the default coordinate system

Since:
JavaFX 2.0