public class FontQuery extends Object implements IFontQuery
PDFont instances from an IFontFactory
with the defined attributes.TYPE_ANY, TYPE_BUILTIN, TYPE_TRUETYPE, TYPE_TYPE1| Constructor and Description |
|---|
FontQuery() |
FontQuery(PDFont baseFont)
Create a new
IFontQuery based on another PDFont. |
FontQuery(String fontName) |
FontQuery(String family,
PDFontStyle style)
|
FontQuery(String family,
String style)
|
| Modifier and Type | Method and Description |
|---|---|
Encoding |
getEncoding()
The desired encoding for the
PDFont. |
String |
getFontFamilyName()
The desired font family for the
PDFont. |
String |
getFontName()
The desired font name for the
PDFont. |
PDFontStyle |
getFontStyle()
The desired font style for the
PDFont. |
String |
getFontType()
The desired font type for the
PDFont (such as "Type1" or
"TrueType"). |
Encoding |
getOverrideEncoding()
The required encoding for the result font.
|
String |
getOverrideFontFamilyName()
The required font family for the result font.
|
String |
getOverrideFontName() |
PDFontStyle |
getOverrideFontStyle()
The required font style for the result font.
|
String |
getOverrideFontType() |
void |
setOverrideEncoding(Encoding overrideEncoding)
Set the encoding attribute for the font to be looked up.
|
void |
setOverrideFontFamilyName(String overrideFontFamilyName)
Set the font family attribute for the font to be looked up.
|
void |
setOverrideFontName(String overrideFontName) |
void |
setOverrideFontStyle(PDFontStyle overrideFontStyle)
Set the font style attribute for the font to be looked up.
|
void |
setOverrideFontType(String overrideFontType) |
public FontQuery()
public FontQuery(PDFont baseFont)
IFontQuery based on another PDFont. USe the
setter methods to overwrite the attributes you want to be different from
baseFont.baseFont - The font serivng as a template for this query.public FontQuery(String fontName)
public FontQuery(String family, PDFontStyle style)
family - The family of the FontQuery.style - The style of the FontQuery.public Encoding getEncoding()
IFontQueryPDFont.getEncoding in interface IFontQueryPDFont.public String getFontFamilyName()
IFontQueryPDFont.getFontFamilyName in interface IFontQueryPDFont.public String getFontName()
IFontQueryPDFont.getFontName in interface IFontQueryPDFont.public PDFontStyle getFontStyle()
IFontQueryPDFont.getFontStyle in interface IFontQueryPDFont.public String getFontType()
IFontQueryPDFont (such as "Type1" or
"TrueType"). nullindicates a font of any type.getFontType in interface IFontQueryPDFont.public Encoding getOverrideEncoding()
public String getOverrideFontFamilyName()
public String getOverrideFontName()
public PDFontStyle getOverrideFontStyle()
public String getOverrideFontType()
public void setOverrideEncoding(Encoding overrideEncoding)
overrideEncoding - The required encoding for the result font.public void setOverrideFontFamilyName(String overrideFontFamilyName)
overrideFontFamilyName - The required font family for the result font.public void setOverrideFontName(String overrideFontName)
public void setOverrideFontStyle(PDFontStyle overrideFontStyle)
overrideFontStyle - The required font style for the result font.public void setOverrideFontType(String overrideFontType)
Copyright © 2013 intarsys consulting GmbH. All Rights Reserved.