public interface FontStorage
Modifier and Type | Method and Description |
---|---|
void |
addFont(String name,
InputStream fontData)
Adds a font to the server.
|
boolean |
deleteFont(String name)
Deletes the font specified by given name from the server.
|
Font |
getFont(String name)
Returns the font by name.
|
InputStream |
getFontData(String name)
Returns data for the specified font as stream.
|
List<String> |
getFontNames()
Returns the names of all fonts installed on the server.
|
Font getFont(String name)
name
- the name of the font.InputStream getFontData(String name)
name
- the name of the font to get data for.List<String> getFontNames()
boolean deleteFont(String name)
name
- the name of the font to delete.getFontNames()
void addFont(String name, InputStream fontData) throws FontAlreadyExistsException, IOException
name
- the name of the new font.fontData
- the data of the font as stream,FontAlreadyExistsException
- if the font already exists on the server.IOException
- if the addition of the font failed.Copyright © 2021 e-Spirit AG. All Rights Reserved. Build 5.2.210210