Interface IFontRegistry

All Known Implementing Classes:
FontRegistry

public interface IFontRegistry
The registry of the platform fonts.
  • Method Details

    • getFont

      Font getFont(String alias, Version version)
      Gets the font by specified alias (the qualified name).
      Parameters:
      alias - - qualified name, cannot be null
      version - current project version, cannot be null
      Returns:
      the font, can be null if not found
    • getStyleFonts

      Map<String,Font> getStyleFonts(Version version)
      Gets the all registered style fonts.
      Parameters:
      version - current project version, cannot be null
      Returns:
      all registered style fonts
    • getSystemFonts

      Map<String,Font> getSystemFonts(Version version)
      Gets the all registered system fonts.
      Parameters:
      version - current project version, cannot be null
      Returns:
      all registered system fonts
    • getFont

      Font getFont(CompositeId id, Version version)
      Gets the font by specified id.
      Parameters:
      id - the composite is, cannot be null
      version - current project version, cannot be null
      Returns:
      the font, can be null if not found
    • getStyleFontIds

      Map<CompositeId,Font> getStyleFontIds(Version version)
      Gets the all registered style font ids.
      Parameters:
      version - current project version, cannot be null
      Returns:
      all registered style font ids
    • getSystemFontIds

      Map<CompositeId,Font> getSystemFontIds(Version version)
      Gets the all registered system font ids.
      Parameters:
      version - current project version, cannot be null
      Returns:
      all registered system font ids