public final class SyntheticFont extends CFFFont
| Modifier and Type | Method and Description |
|---|---|
Subset |
createSubset()
Create a subset for this font.
|
Rect |
getCoolTypeIcfBox()
Compute the IcfBox.
|
Rect |
getCoolTypeIdeoEmBox() |
LineMetrics |
getCoolTypeLineMetrics()
Emulates the CoolType API CTFontDict:GetHorizontalMetrics CoolType API.
|
Rect |
getCoolTypeRawFontBBox() |
Permission |
getEmbeddingPermission(boolean wasEmbedded) |
Rect |
getFontBBox() |
Matrix |
getFontMatrix() |
int |
getGlyphCid(int glyphID)
Get the CID associated with glyph
glyphID. |
int |
getGlyphForChar(int usv)
Return the glyph to use to display a character.
|
String |
getGlyphName(int gid)
Return the name of glyph
gid. |
void |
getGlyphOutline(int gid,
OutlineConsumer consumer)
Get the outline of glyph
gid. |
double |
getHorizontalAdvance(int gid)
Get the horizontal advance of a glyph.
|
int |
getNumGlyphs()
Return the number of glyphs in this font.
|
void |
getOutline(int gid,
Type2OutlineParser parser,
OutlineConsumer consumer)
Return the outline of glyph
gid. |
PDFFontDescription |
getPDFFontDescription(Font font) |
ROS |
getROS()
Get the ROS associated with this font.
|
double |
getStemVForGlyph(int gid) |
XDCFontDescription |
getXDCFontDescription(Font font) |
void |
stream(OutputStream out,
Integer fsType) |
void |
subsetAndStream(Subset subset,
OutputStream out,
boolean preserveROS,
Integer fsType)
Subset and stream this font for PDF use.
|
getCacheSupportInfo, getCoolTypeProportionalRomanFromFontProperties, getCoolTypeScript, getCoolTypeUnderlineMetrics, getCoolTypeUnderlineMetrics, getCSSFamilyNames, getCSSStretchValue, getCSSWeight, getFXGFontDescription, getGlyphBBox, getName, getPlatformFontDescription, getPostscriptFontDescription, getPreferredCSSFamilyName, getScaler, getSelectionDescription, getSWFFont4Description, getSWFFontDescription, getUnitsPerEmX, getUnitsPerEmY, isCSSStyleItalic, isCSSStyleNormal, isCSSStyleOblique, isCSSVariantNormal, isCSSVariantSmallCaps, isFixedPitch, subsetAndStreamgetContainerFingerprint, getCoolTypeCapHeight, getCoolTypeFontBBox, getCoolTypeGlyphBBox, getCoolTypeGlyphForChar, getCoolTypeUnitsPerEm, getCoolTypeXHeight, getCSS20FontDescription, getLineMetrics, getPointSizeRange, getPreferredCSS20FontDescription, getScaler, hasCoolTypeProportionalRoman, isSymbolicpublic Subset createSubset() throws UnsupportedFontException
createSubset in class FontDataUnsupportedFontExceptionpublic int getNumGlyphs()
throws UnsupportedFontException,
InvalidFontException
FontDatagetNumGlyphs in class FontDataUnsupportedFontExceptionInvalidFontExceptionpublic String getGlyphName(int gid) throws InvalidFontException, UnsupportedFontException
gid.getGlyphName in class CFFFontInvalidFontExceptionUnsupportedFontExceptionpublic ROS getROS()
CFFFontpublic int getGlyphCid(int glyphID)
throws InvalidFontException,
UnsupportedFontException
CFFFontglyphID.
Returns -1 if getROS() returns null.getGlyphCid in class CFFFontInvalidFontExceptionUnsupportedFontExceptionpublic void getGlyphOutline(int gid,
OutlineConsumer consumer)
throws InvalidFontException,
UnsupportedFontException
gid.getGlyphOutline in class CFFFontgid - the glyph id of the glyphconsumer - the OutlineConsumer to receive the outlineInvalidFontExceptionUnsupportedFontExceptionpublic void getOutline(int gid,
Type2OutlineParser parser,
OutlineConsumer consumer)
throws InvalidFontException,
UnsupportedFontException
gid.getOutline in class CFFFontInvalidFontExceptionUnsupportedFontExceptionpublic double getStemVForGlyph(int gid)
throws InvalidFontException
getStemVForGlyph in class CFFFontInvalidFontExceptionpublic Matrix getFontMatrix()
getFontMatrix in class CFFFontpublic double getHorizontalAdvance(int gid)
throws InvalidFontException,
UnsupportedFontException
getHorizontalAdvance in class CFFFontInvalidFontExceptionUnsupportedFontExceptionpublic Rect getFontBBox() throws InvalidFontException, UnsupportedFontException
getFontBBox in class FontDataInvalidFontExceptionUnsupportedFontExceptionpublic Rect getCoolTypeRawFontBBox() throws InvalidFontException, UnsupportedFontException
public int getGlyphForChar(int usv)
throws InvalidFontException,
UnsupportedFontException
CFFFontgetGlyphForChar in class CFFFontusv - the Unicode scalar value of the character;
(by definition, surrogate code points are not Unicode scalar values).InvalidFontExceptionUnsupportedFontExceptionpublic LineMetrics getCoolTypeLineMetrics() throws UnsupportedFontException, InvalidFontException
The metrics are expressed in the design space of the font, i.e. they need to be converted through the metrics matrix.
This methods never returns null.
See also the FontData.getLineMetrics() method.
getCoolTypeLineMetrics in class FontDataUnsupportedFontExceptionInvalidFontExceptionpublic Rect getCoolTypeIdeoEmBox() throws UnsupportedFontException, InvalidFontException
getCoolTypeIdeoEmBox in class CFFFontUnsupportedFontExceptionInvalidFontExceptionpublic Rect getCoolTypeIcfBox() throws UnsupportedFontException, InvalidFontException
CFFFontgetCoolTypeIcfBox in class CFFFontUnsupportedFontExceptionInvalidFontExceptionpublic Permission getEmbeddingPermission(boolean wasEmbedded) throws InvalidFontException, UnsupportedFontException
getEmbeddingPermission in class FontDataInvalidFontExceptionUnsupportedFontExceptionpublic void subsetAndStream(Subset subset, OutputStream out, boolean preserveROS, Integer fsType) throws InvalidFontException, UnsupportedFontException
subsetAndStream in class CFFFontout - the OutputStream to which the bytes are streamedfsType - if non-null an integer as described in technote 5147
http://partners.adobe.com/public/developer/en/acrobat/sdk/FontPolicies.pdf
"Font Embedding Guidelines for Adobe Third-party Developers".InvalidFontExceptionUnsupportedFontExceptionpublic PDFFontDescription getPDFFontDescription(Font font)
getPDFFontDescription in class FontDatapublic XDCFontDescription getXDCFontDescription(Font font)
getXDCFontDescription in class FontDatapublic void stream(OutputStream out, Integer fsType) throws UnsupportedFontException
stream in class CFFFontUnsupportedFontExceptionCopyright © 2010 - 2020 Adobe. All Rights Reserved