public class FileSystemFontProvider extends FontProvider
Modifier and Type | Method and Description |
---|---|
String |
addFont(File file)
Adds a font to the list of available fonts.
|
String |
addFont(File file,
String alias)
Adds a font to the list of available fonts.
|
String |
addFont(InputStream inputStream,
String tempName,
FontType type)
Adds a font to the list of available fonts.
|
List<? extends FontInfo> |
getFontInfo()
Returns a list of information about fonts on the system.
|
String |
toDebugString()
Returns a string containing debugging information.
|
public String addFont(File file)
FontProvider
addFont
in class FontProvider
file
- the font filepublic String addFont(File file, String alias)
FontProvider
addFont
in class FontProvider
file
- the font filealias
- the font aliaspublic String addFont(InputStream inputStream, String tempName, FontType type)
FontProvider
addFont
in class FontProvider
inputStream
- the font file input streamtempName
- the font temp nametype
- the font typepublic String toDebugString()
FontProvider
toDebugString
in class FontProvider
public List<? extends FontInfo> getFontInfo()
FontProvider
getFontInfo
in class FontProvider
Copyright © 2024. All rights reserved.