Interface FontManager
-
- All Known Implementing Classes:
FontManagerImpl
public interface FontManagerInterface which exposes methods for retrievingfontsand information about the fonts (such as the font name, font style, and font type)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Optional<java.io.InputStream>getFont(java.lang.String fontName, java.lang.String fontStyle, PerspectiveFontType fontType)Returns a stream of the raw font's bytes identified by the given name, style, and typejava.util.List<PerspectiveFont>getFonts()Returns a copy of the list of all of the managed fonts
-
-
-
Method Detail
-
getFonts
@Nonnull java.util.List<PerspectiveFont> getFonts()
Returns a copy of the list of all of the managed fonts- Returns:
- A
Listof all managedfonts
-
getFont
@Nonnull java.util.Optional<java.io.InputStream> getFont(java.lang.String fontName, java.lang.String fontStyle, PerspectiveFontType fontType)Returns a stream of the raw font's bytes identified by the given name, style, and type- Parameters:
fontName- The name of the font to fetchfontStyle- The style of the font to fetchfontType- Thetypeof the font to fetch- Returns:
- An
Optionalcontaining theInputStreamof raw bytes for the font with the given name, style, and type or an empty Optional of no such font is managed with the given name, style, and type
-
-