public class LocalFontInfo extends Object
Constructor and Description |
---|
LocalFontInfo() |
Modifier and Type | Method and Description |
---|---|
boolean |
getAllowEmbed()
Get flag indicating if this font can be embedded in a document.
|
boolean |
getAllowSubset()
Get flag indicating if this font can be subsetted when embedding
|
boolean |
getBold()
Get flag indicating if this font is bold
|
boolean |
getEmbedBitmapOnly()
Get flag indicating if this font can only be embedded as bitmaps
|
int |
getEmbedFlags()
Get font embedding flags value - these flags can be checked to see what kinds of embedding are allowed.
|
String |
getFamilyName()
Get "family name" for font
|
String |
getFilePath()
Get path to file containing font
|
int |
getFontIndex()
Get index for font in collection file.
|
String |
getFullName()
Get "full name" for font
|
boolean |
getItalic()
Get flag indicating if this font is italic
|
boolean |
getJavaSystemFont()
Get flag indicating if this font is available as a Java system font
|
List<String> |
getNameList()
Get list of names for font.
|
String |
getPSName()
Get "PostScript name" for font
|
Object |
getSFNT(boolean allowFail)
Get SFNT object for font.
|
boolean |
loadFontProperties(boolean allowFail)
Load properties for font - either FilePath + FontIndex or SFNT
must be set to supply font data.
|
void |
setAllowEmbed(boolean value)
Set flag indicating if this font can be embedded in a document.
|
void |
setAllowSubset(boolean value)
Set flag indicating if this font can be subsetted when embedding
|
void |
setBold(boolean value)
Set flag indicating if this font is bold
|
void |
setEmbedBitmapOnly(boolean value)
Set flag indicating if this font can only be embedded as bitmaps
|
void |
setEmbedFlags(int value)
Set font embedding flags value - these flags can be checked to see what kinds of embedding are allowed.
|
void |
setFamilyName(String value)
Set "family name" for font
|
void |
setFilePath(String value)
Set path to file containing font
|
void |
setFontIndex(int value)
Set index for font in collection file.
|
void |
setFullName(String value)
Set "full name" for font
|
void |
setItalic(boolean value)
Set flag indicating if this font is italic
|
void |
setJavaSystemFont(boolean value)
Set flag indicating if this font is available as a Java system font
|
void |
setNameList(List<String> value)
Set list of names for font.
|
void |
setPSName(String value)
Set "PostScript name" for font
|
void |
setSFNT(Object value)
Set font data as SFNT object loaded by qSFNTLY library
|
public void setSFNT(Object value)
SFNT
- object from SFNTLY librarypublic Object getSFNT(boolean allowFail) throws PDFException
SFNT
- object from SFNTLY libraryPDFException
public void setFilePath(String value)
Path
- to file containing fontpublic String getFilePath()
public void setFontIndex(int value)
Zero-based
- index of font in collection file. -1 (default) for file with single font.public int getFontIndex()
public List<String> getNameList()
public void setEmbedFlags(int value)
Embed
- flags valuepublic int getEmbedFlags()
public void setAllowEmbed(boolean value)
Font
- embed flagpublic boolean getAllowEmbed()
public void setAllowSubset(boolean value)
Font
- subset flagpublic boolean getAllowSubset()
public void setEmbedBitmapOnly(boolean value)
Font
- bitmap embed flagpublic boolean getEmbedBitmapOnly()
public void setBold(boolean value)
Bold
- flagpublic boolean getBold()
public void setItalic(boolean value)
Italic
- flagpublic boolean getItalic()
public void setJavaSystemFont(boolean value)
Java
- system font flagpublic boolean getJavaSystemFont()
public void setFullName(String value)
Full
- name stringpublic String getFullName()
public void setFamilyName(String value)
Family
- name stringpublic String getFamilyName()
public void setPSName(String value)
PostScript
- name stringpublic String getPSName()
public boolean loadFontProperties(boolean allowFail) throws PDFException, IOException
allowFail
- - flag: true = allow failure flag, passed to underlying SFNTLY codePDFException
IOException