Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: FontFactory

[16:7] extends: FxObj

Wraps FXGL's FontFactory, a builder that returns a JavaFX Font at a requested size. UIFactoryService holds one FontFactory per FontType (UI, MONO, TEXT, GAME) that game code reads through newFont(size). Aussom users normally do not construct a FontFactory directly; the wrapper exists for users that hold one through AJI.

Methods

  • FontFactory ()

    Empty default constructor; populated by adopt.

  • adopt (object Ajo)

    Wraps an existing FontFactory AussomJavaObject.

    • @p Ajo is an AussomJavaObject around a FontFactory.
    • @r A new wrapper.
  • newFont (double Size)

    Returns a JavaFX Font at the given size from this factory.

    • @p Size is the font size in points.
    • @r An AussomJavaObject around a javafx.scene.text.Font.