Skip to content

Font

Font class

Info

To add a new Font, you need to create an instance of this class with valid parameters

Currently, only Google Fonts are supported

  • Use: To create a new Font object

  • Constructor: Font(String font_link, String font_name, String font_fallback)

  • Parameters:

    • String font_link : The external weblink for the primary Font
    • String font_name : The name of the primary Font
    • String font_fallback : The fallback/secondary Font name to use, if the specified primary Font is not found
  • Returns: Font Object


Font methods


addFont

Note

You need to create a Font object before adding it to the UI

  • Use: To add a Font to the UI

  • Definition: addFont(Font font)

  • Parameters:

    • Font font : The Font Object of the target Font.
  • Returns: Nothing


setGlobalFont

Note

You need to add Font to the UI before setting the Font

  • Use: To set the Global Font of the UI

  • Definition: setGlobalFont(Font font)

  • Parameters:

    • Font font : The Font Object of the target Font
  • Returns: Nothing