public abstract class PDFFontDescription extends Object
Metrics returned by this class are expressed in 1/1000th of em.
| Constructor and Description |
|---|
PDFFontDescription() |
| Modifier and Type | Method and Description |
|---|---|
abstract double |
getAdvance(int glyphID)
Fetch the horizontal advance width for the specified glyph.
|
abstract String |
getBase14Name() |
abstract double |
getCapHeight()
Fetch the height above the baseline of capital letters
|
abstract int |
getCIDCount()
Get the CID count associated with the CIDKeyedFont
|
abstract Rect |
getFontBBox()
Fetch the font bounding box.
|
abstract String |
getFontFamily()
Fetches the preferred family name associated with this font.
|
abstract int |
getGlyphCid(int glyphID)
Fetch the CID for a given glyph.
|
abstract String |
getGlyphName(int gid) |
abstract double |
getItalicAngle()
Fetch the italic angle.
|
abstract int |
getNumGlyphs()
The number of glyphs in the font.
|
abstract String |
getPostscriptName()
Fetches the preferred postscript name for the font.
|
abstract ROS |
getROS()
Get the Registry, Ordering and Supplement associated with the font.
|
abstract double |
getStemV()
Fetch the font's primary vertical stem width
|
abstract double |
getXHeight()
Fetch the height above the baseline for lowercase letters.
|
abstract boolean |
isAllCapFont() |
abstract boolean |
isSerifFont() |
abstract boolean |
isSmallCapFont() |
abstract boolean |
pdfFontIsTrueType() |
abstract void |
stream(OutputStream out,
boolean openTypeFontsAllowed)
Streams a font suitable for embedding in a PDF for editting situations.
|
abstract void |
subsetAndStream(Subset subset,
OutputStream out,
boolean preserveROS) |
abstract void |
subsetAndStream(SubsetSimpleTrueType subset,
OutputStream out) |
abstract void |
subsetAndStream(SubsetSimpleType1 subset,
OutputStream out) |
public abstract String getPostscriptName() throws InvalidFontException, UnsupportedFontException
public abstract String getFontFamily() throws InvalidFontException, UnsupportedFontException
public abstract double getStemV()
throws UnsupportedFontException,
InvalidFontException
UnsupportedFontExceptionInvalidFontExceptionpublic abstract Rect getFontBBox() throws InvalidFontException, UnsupportedFontException
InvalidFontExceptionUnsupportedFontExceptionpublic abstract double getCapHeight()
throws UnsupportedFontException,
InvalidFontException
UnsupportedFontExceptionInvalidFontExceptionpublic abstract double getXHeight()
throws UnsupportedFontException,
InvalidFontException
UnsupportedFontExceptionInvalidFontExceptionpublic abstract double getItalicAngle()
throws InvalidFontException,
UnsupportedFontException
public abstract int getNumGlyphs()
throws InvalidFontException,
UnsupportedFontException
public abstract double getAdvance(int glyphID)
throws InvalidFontException,
UnsupportedFontException
glyphID - the glyph to be fetchedInvalidGlyphException - thrown when the glyph contains data that cannot be interpretted and cannot
be ignoredUnsupportedFontException - thrown when the font contains data that indicates that AFE does not support
that class of fonts.InvalidFontExceptionpublic abstract ROS getROS() throws UnsupportedFontException, InvalidFontException
public abstract int getCIDCount()
throws UnsupportedFontException,
InvalidFontException
public abstract int getGlyphCid(int glyphID)
throws UnsupportedFontException,
InvalidFontException
glyphID - UnsupportedFontExceptionInvalidFontExceptionpublic abstract boolean pdfFontIsTrueType()
throws InvalidFontException,
UnsupportedFontException
public abstract String getGlyphName(int gid) throws InvalidFontException, UnsupportedFontException
public abstract String getBase14Name()
public abstract boolean isSerifFont()
throws InvalidFontException,
UnsupportedFontException
public abstract boolean isSmallCapFont()
throws InvalidFontException,
UnsupportedFontException
public abstract boolean isAllCapFont()
throws InvalidFontException,
UnsupportedFontException
public abstract void stream(OutputStream out, boolean openTypeFontsAllowed) throws InvalidFontException, UnsupportedFontException, IOException
out - The stream to which the font is streamed.openTypeFontsAllowed - True iff the target pdf can contain OpenType fonts (i.e., it is at least PDF 1.7)InvalidFontExceptionUnsupportedFontExceptionIOExceptionpublic abstract void subsetAndStream(Subset subset, OutputStream out, boolean preserveROS) throws InvalidFontException, UnsupportedFontException, IOException
public abstract void subsetAndStream(SubsetSimpleType1 subset, OutputStream out) throws InvalidFontException, UnsupportedFontException, IOException
public abstract void subsetAndStream(SubsetSimpleTrueType subset, OutputStream out) throws InvalidFontException, UnsupportedFontException, IOException
Copyright © 2010 - 2020 Adobe. All Rights Reserved