public final class PDFSimpleFont extends FontData
| Constructor and Description |
|---|
PDFSimpleFont(PDFSimpleFontValuesAccessor dataAccessor) |
| Modifier and Type | Method and Description |
|---|---|
Subset |
createSubset()
Create a subset for this font.
|
CacheSupportInfo |
getCacheSupportInfo()
Return the CacheSupportInfo that this font matches
|
Rect |
getCoolTypeIcfBox() |
Rect |
getCoolTypeIdeoEmBox() |
LineMetrics |
getCoolTypeLineMetrics()
Emulates the CoolType API CTFontDict:GetHorizontalMetrics CoolType API.
|
boolean |
getCoolTypeProportionalRomanFromFontProperties()
Tell whether a font is monospaced.
|
CoolTypeScript |
getCoolTypeScript() |
UnderlineMetrics |
getCoolTypeUnderlineMetrics() |
Permission |
getEmbeddingPermission(boolean wasEmbedded) |
Rect |
getFontBBox() |
FXGFontDescription[] |
getFXGFontDescription(Platform platform,
ULocale locale)
Return the FXG descriptions for this font.
|
Rect |
getGlyphBBox(int gid)
Get the bounding box of a glyph.
|
int |
getGlyphForChar(int unicodeScalarValue)
Return the glyph to use to display a character.
|
void |
getGlyphOutline(int gid,
OutlineConsumer consumer)
Send a glyph's outline to an OutlineConsumer.
|
double |
getHorizontalAdvance(int gid)
Get the horizontal advance of a glyph.
|
int |
getNumGlyphs()
Return the number of glyphs in this font.
|
PDFFontDescription |
getPDFFontDescription(Font font) |
PlatformFontDescription[] |
getPlatformFontDescription(Platform platform,
ULocale locale)
Return the platform descriptions for this font.
|
PostscriptFontDescription[] |
getPostscriptFontDescription()
Return the postscript descriptions that this font matches.
|
Scaler |
getScaler(ScanConverter c)
Get a scaler for this font, using a specific scan converter.
|
CatalogDescription |
getSelectionDescription() |
SWFFont4Description |
getSWFFont4Description(boolean wasEmbedded) |
SWFFontDescription |
getSWFFontDescription(boolean wasEmbedded) |
double |
getUnitsPerEmX() |
double |
getUnitsPerEmY() |
XDCFontDescription |
getXDCFontDescription(Font font) |
boolean |
isSymbolic()
Tell whether the font is symbolic.
|
void |
subsetAndStream(Subset subset,
OutputStream out,
boolean preserveROS)
Subset and stream this font for PDF use.
|
getContainerFingerprint, getCoolTypeCapHeight, getCoolTypeFontBBox, getCoolTypeGlyphBBox, getCoolTypeGlyphForChar, getCoolTypeUnitsPerEm, getCoolTypeXHeight, getCSS20FontDescription, getLineMetrics, getPointSizeRange, getPreferredCSS20FontDescription, getScaler, hasCoolTypeProportionalRomanpublic PDFSimpleFont(PDFSimpleFontValuesAccessor dataAccessor) throws InvalidFontException, UnsupportedFontException
public boolean getCoolTypeProportionalRomanFromFontProperties()
getCoolTypeProportionalRomanFromFontProperties in class FontDatapublic boolean isSymbolic()
throws UnsupportedFontException,
InvalidFontException
isSymbolic in class FontDataUnsupportedFontExceptionInvalidFontExceptionpublic int getNumGlyphs()
throws InvalidFontException,
UnsupportedFontException
FontDatagetNumGlyphs in class FontDataInvalidFontExceptionUnsupportedFontExceptionpublic double getUnitsPerEmX()
throws UnsupportedFontException,
InvalidFontException
getUnitsPerEmX in class FontDataUnsupportedFontExceptionInvalidFontExceptionpublic double getUnitsPerEmY()
throws UnsupportedFontException,
InvalidFontException
getUnitsPerEmY in class FontDataUnsupportedFontExceptionInvalidFontExceptionpublic Rect getFontBBox() throws InvalidFontException, UnsupportedFontException
getFontBBox in class FontDataInvalidFontExceptionUnsupportedFontExceptionpublic CoolTypeScript getCoolTypeScript() throws UnsupportedFontException, InvalidFontException
getCoolTypeScript in class FontDataUnsupportedFontExceptionInvalidFontExceptionpublic Rect getCoolTypeIdeoEmBox() throws UnsupportedFontException, InvalidFontException
getCoolTypeIdeoEmBox in class FontDataUnsupportedFontExceptionInvalidFontExceptionpublic Rect getCoolTypeIcfBox() throws InvalidFontException, UnsupportedFontException
getCoolTypeIcfBox in class FontDataInvalidFontExceptionUnsupportedFontExceptionpublic LineMetrics getCoolTypeLineMetrics() throws UnsupportedFontException, InvalidFontException
FontDataSee also the FontData.getLineMetrics() method.
getCoolTypeLineMetrics in class FontDataUnsupportedFontExceptionInvalidFontExceptionpublic UnderlineMetrics getCoolTypeUnderlineMetrics() throws UnsupportedFontException, InvalidFontException
getCoolTypeUnderlineMetrics in class FontDataUnsupportedFontExceptionInvalidFontExceptionpublic int getGlyphForChar(int unicodeScalarValue)
throws InvalidFontException,
UnsupportedFontException
FontDatagetGlyphForChar in class FontDataunicodeScalarValue - the Unicode scalar value of the character;
(by definition, surrogate code points are not Unicode scalar values).InvalidFontExceptionUnsupportedFontExceptionpublic Rect getGlyphBBox(int gid) throws UnsupportedFontException, InvalidFontException
FontDatagetGlyphBBox in class FontDataUnsupportedFontExceptionInvalidFontExceptionpublic void getGlyphOutline(int gid,
OutlineConsumer consumer)
throws InvalidFontException,
UnsupportedFontException
FontDatagetGlyphOutline in class FontDataInvalidFontExceptionUnsupportedFontExceptionpublic double getHorizontalAdvance(int gid)
throws InvalidGlyphException,
UnsupportedFontException,
InvalidFontException
FontDatagetHorizontalAdvance in class FontDataInvalidGlyphExceptionUnsupportedFontExceptionInvalidFontExceptionpublic Scaler getScaler(ScanConverter c) throws InvalidFontException, UnsupportedFontException
FontDatagetScaler in class FontDataInvalidFontExceptionUnsupportedFontExceptionpublic Permission getEmbeddingPermission(boolean wasEmbedded) throws InvalidFontException, UnsupportedFontException
getEmbeddingPermission in class FontDataInvalidFontExceptionUnsupportedFontExceptionpublic PDFFontDescription getPDFFontDescription(Font font)
getPDFFontDescription in class FontDatapublic XDCFontDescription getXDCFontDescription(Font font)
getXDCFontDescription in class FontDatapublic Subset createSubset() throws InvalidFontException, UnsupportedFontException
FontDatacreateSubset in class FontDataInvalidFontExceptionUnsupportedFontExceptionpublic void subsetAndStream(Subset subset, OutputStream out, boolean preserveROS) throws InvalidFontException, UnsupportedFontException, IOException
FontDatasubsetAndStream in class FontDataout - the OutputStream to which the bytes are streamedpreserveROS - tells whether to preserve the cid -> gid mappingInvalidFontExceptionUnsupportedFontExceptionIOExceptionpublic CacheSupportInfo getCacheSupportInfo() throws InvalidFontException, UnsupportedFontException
FontDatagetCacheSupportInfo in class FontDataInvalidFontExceptionUnsupportedFontExceptionpublic PostscriptFontDescription[] getPostscriptFontDescription() throws InvalidFontException, UnsupportedFontException
FontDatagetPostscriptFontDescription in class FontDataInvalidFontExceptionUnsupportedFontExceptionpublic FXGFontDescription[] getFXGFontDescription(Platform platform, ULocale locale) throws InvalidFontException, UnsupportedFontException
FontDatagetFXGFontDescription in class FontDataInvalidFontExceptionUnsupportedFontExceptionpublic PlatformFontDescription[] getPlatformFontDescription(Platform platform, ULocale locale) throws InvalidFontException, UnsupportedFontException
FontDatagetPlatformFontDescription in class FontDataInvalidFontExceptionUnsupportedFontExceptionpublic CatalogDescription getSelectionDescription() throws InvalidFontException, UnsupportedFontException
getSelectionDescription in class FontDataInvalidFontExceptionUnsupportedFontExceptionpublic SWFFontDescription getSWFFontDescription(boolean wasEmbedded) throws UnsupportedFontException, InvalidFontException
getSWFFontDescription in class FontDataUnsupportedFontExceptionInvalidFontExceptionpublic SWFFont4Description getSWFFont4Description(boolean wasEmbedded) throws UnsupportedFontException, InvalidFontException
getSWFFont4Description in class FontDataUnsupportedFontExceptionInvalidFontExceptionCopyright © 2010 - 2020 Adobe. All Rights Reserved