Interface FontManager
- All Known Implementing Classes:
- FontManagerImpl
public interface FontManager
Interface which exposes methods for retrieving 
fonts and information about the fonts (such
 as the font name, font style, and font type)- 
Method SummaryModifier and TypeMethodDescriptiongetFont(String fontName, String fontStyle, PerspectiveFontType fontType) Returns a stream of the raw font's bytes identified by the given name, style, and typegetFonts()Returns a copy of the list of all of the managed fonts
- 
Method Details- 
getFontsReturns a copy of the list of all of the managed fonts
- 
getFont@Nonnull Optional<InputStream> getFont(String fontName, 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 fetch
- fontStyle- The style of the font to fetch
- fontType- The- typeof 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
 
 
-