Interface FontStorage


public interface FontStorage
Storage for the fonts installed on the server.
Since:
4.0
  • Method Details

    • getFont

      Font getFont(String name)
      Returns the font by name.
      Parameters:
      name - the name of the font.
      Returns:
      the font.
      Since:
      4.0
    • getFontData

      InputStream getFontData(String name)
      Returns data for the specified font as stream.
      Parameters:
      name - the name of the font to get data for.
      Returns:
      the data as stream.
      Since:
      4.1.3
    • getFontNames

      List<String> getFontNames()
      Returns the names of all fonts installed on the server.
      Returns:
      the list of font names.
      Since:
      4.0
    • deleteFont

      boolean deleteFont(String name)
      Deletes the font specified by given name from the server.
      Parameters:
      name - the name of the font to delete.
      Returns:
      true if delete was successful.
      Since:
      4.0
      See Also:
    • addFont

      void addFont(String name, InputStream fontData) throws FontAlreadyExistsException, IOException
      Adds a font to the server.
      Parameters:
      name - the name of the new font.
      fontData - the data of the font as stream,
      Throws:
      FontAlreadyExistsException - if the font already exists on the server.
      IOException - if the addition of the font failed.
      Since:
      4.0