java.lang.Object | |
↳ | com.pdftron.pdf.model.FontResource |
Class that contains info about font resource
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | FONT_FOLDER |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
FontResource(String displayName, String filePath, String fontName, String pdftronName)
Class constructor
| |||||||||||
FontResource(String fontName)
Class constructor
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
boolean |
equals(Object obj)
Whether this font equals other font resource
| ||||||||||
String |
getDisplayName()
Gets display name
| ||||||||||
static String | getFileName(String filePath) | ||||||||||
String |
getFilePath()
Gets font file path
| ||||||||||
String |
getFontName()
Gets font name
| ||||||||||
String |
getPDFTronName()
Gets font pdftron name
| ||||||||||
Boolean |
hasFilePath()
Whether the font has font file path
| ||||||||||
Boolean |
hasFontName()
Whether the font has font name
| ||||||||||
Boolean |
hasPDFTronName()
Whether the font has pdftron name
| ||||||||||
boolean |
isEmpty()
Whether the font is empty
| ||||||||||
void |
setDisplayName(String displayName)
Sets font display name
| ||||||||||
void |
setFilePath(String filePath)
Sets font system path
| ||||||||||
void |
setFontName(String fontName)
Sets font name
| ||||||||||
void |
setPDFTronName(String PDFTronName)
Sets font pdftron name
| ||||||||||
String |
toString()
Convert font to string
| ||||||||||
static boolean |
whiteListFont(String fontName, String fontFilePath)
Whehter given font name is a white list name
| ||||||||||
static String |
whiteListFonts(String fontInfo)
Gets white list fonts from given font info
| ||||||||||
static
|
writeFontAssetsToCache(Context context, Set<String> fonts) | ||||||||||
static
|
writeFontFileToCache(Context context, Set<String> fonts) |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Class constructor
displayName | font display name |
---|---|
filePath | font system path |
fontName | font name |
pdftronName | font pdftron name |
Class constructor
fontName | font name |
---|
Whether this font equals other font resource
obj | other font resource |
---|
Gets display name
Gets font file path
Gets font name
Gets font pdftron name
Whether the font has font file path
Whether the font has font name
Whether the font has pdftron name
Whether the font is empty
Sets font display name
displayName | display name |
---|
Sets font system path
filePath | font file path |
---|
Sets font name
fontName | font name |
---|
Sets font pdftron name
PDFTronName | font pdftron name |
---|
Convert font to string
Whehter given font name is a white list name
fontName | font name |
---|---|
fontFilePath | font file path |
Gets white list fonts from given font info
fontInfo | font info |
---|