| Modifier and Type | Field and Description |
|---|---|
| private float | |
| private final COSDictionary | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private int | |
| private float |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| public | PDFontDescriptor(COSDictionary
The wrapped COS Dictionary. desc)Creates a PDFontDescriptor from a COS dictionary. |
| Modifier and Type | Method and Description |
|---|---|
| public float | |
| public float | |
| public float | |
| public String | |
| public PDStream | |
| public COSDictionary | Returns: The cos object that matches this Java object.Implements org. Convert this standard java object to a COS object. |
| public float | |
| public int | |
| public PDRectangle | |
| public String | |
| public PDStream | Returns: A stream containing a Type 1 font program.A stream containing a Type 1 font program. |
| public PDStream | Returns: A stream containing a true type font program.A stream containing a true type font program. |
| public PDStream | Returns: A stream containing a font program.A stream containing a font program that is not true type or type 1. |
| public String | |
| public String | |
| public float | |
| public float | |
| public float | |
| public float | |
| public float | Returns: The missing width value, or 0 if there is no such dictionary entry.This will get the missing width for the font from the /MissingWidth dictionary entry. |
| public PDPanose | Returns: A Panose wrapper object.Returns the Panose entry of the Style dictionary, if any. |
| public float | |
| public float | |
| public float | |
| public boolean | Returns: true if the missing widths entry is present in the font descriptorReturns true if the missing widths entry is present in the font descriptor. |
| public boolean | Returns: true if widths are present in the font descriptorReturns true if widths are present in the font descriptor. |
| public boolean | |
| public boolean | |
| private boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public void | |
| public void | |
| public void | setAverageWidth(float
The new average width for the font. averageWidth)This will set the average width for the font. |
| public void | setCapHeight(float
The new cap height for the font. capHeight)This will set the cap height for the font. |
| public void | setCharacterSet(String
The new character set for the font. charSet)This will set the character set for the font. |
| public void | |
| public void | |
| public void | |
| private void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | setFontFile3(PDStream
The font program stream. stream)Set a stream containing a font program that is not true type or type 1. |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | setItalicAngle(float
The new italic angle for the font. angle)This will set the italic angle for the font. |
| public void | |
| public void | |
| public void | setMissingWidth(float
The new missing width for the font. missingWidth)This will set the missing width for the font. |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void |
| capHeight | back to summary |
|---|---|
| private float capHeight | |
| dic | back to summary |
|---|---|
| private final COSDictionary dic | |
| FLAG_ALL_CAP | back to summary |
|---|---|
| private static final int FLAG_ALL_CAP | |
| FLAG_FIXED_PITCH | back to summary |
|---|---|
| private static final int FLAG_FIXED_PITCH | |
| FLAG_FORCE_BOLD | back to summary |
|---|---|
| private static final int FLAG_FORCE_BOLD | |
| FLAG_ITALIC | back to summary |
|---|---|
| private static final int FLAG_ITALIC | |
| FLAG_NON_SYMBOLIC | back to summary |
|---|---|
| private static final int FLAG_NON_SYMBOLIC | |
| FLAG_SCRIPT | back to summary |
|---|---|
| private static final int FLAG_SCRIPT | |
| FLAG_SERIF | back to summary |
|---|---|
| private static final int FLAG_SERIF | |
| FLAG_SMALL_CAP | back to summary |
|---|---|
| private static final int FLAG_SMALL_CAP | |
| FLAG_SYMBOLIC | back to summary |
|---|---|
| private static final int FLAG_SYMBOLIC | |
| flags | back to summary |
|---|---|
| private int flags | |
| xHeight | back to summary |
|---|---|
| private float xHeight | |
| PDFontDescriptor | back to summary |
|---|---|
| pack-priv PDFontDescriptor() Package-private constructor, for embedding. | |
| PDFontDescriptor | back to summary |
|---|---|
| public PDFontDescriptor(COSDictionary desc) Creates a PDFontDescriptor from a COS dictionary.
| |
| getAscent | back to summary |
|---|---|
| public float getAscent() This will get the ascent for the font.
| |
| getAverageWidth | back to summary |
|---|---|
| public float getAverageWidth() This will get the average width for the font.
| |
| getCapHeight | back to summary |
|---|---|
| public float getCapHeight() This will get the CapHeight for the font.
| |
| getCharSet | back to summary |
|---|---|
| public String getCharSet() This will get the character set for the font.
| |
| getCIDSet | back to summary |
|---|---|
| public PDStream getCIDSet() Get the CIDSet stream.
| |
| getCOSObject | back to summary |
|---|---|
| public COSDictionary getCOSObject() Implements org. Convert this standard java object to a COS object.
| |
| getDescent | back to summary |
|---|---|
| public float getDescent() This will get the descent for the font.
| |
| getFlags | back to summary |
|---|---|
| public int getFlags() This will get the font flags.
| |
| getFontBoundingBox | back to summary |
|---|---|
| public PDRectangle getFontBoundingBox() This will get the fonts bounding box.
| |
| getFontFamily | back to summary |
|---|---|
| public String getFontFamily() A string representing the preferred font family.
| |
| getFontFile | back to summary |
|---|---|
| public PDStream getFontFile() A stream containing a Type 1 font program.
| |
| getFontFile2 | back to summary |
|---|---|
| public PDStream getFontFile2() A stream containing a true type font program.
| |
| getFontFile3 | back to summary |
|---|---|
| public PDStream getFontFile3() A stream containing a font program that is not true type or type 1.
| |
| getFontName | back to summary |
|---|---|
| public String getFontName() Get the font name.
| |
| getFontStretch | back to summary |
|---|---|
| public String getFontStretch() A string representing the preferred font stretch. According to the PDF Spec: The font stretch value; it must be one of the following (ordered from narrowest to widest): UltraCondensed, ExtraCondensed, Condensed, SemiCondensed, Normal, SemiExpanded, Expanded, ExtraExpanded or UltraExpanded.
| |
| getFontWeight | back to summary |
|---|---|
| public float getFontWeight() The weight of the font. According to the PDF spec "possible values are 100, 200, 300, 400, 500, 600, 700, 800 or 900" Where a higher number is more weight and appears to be more bold.
| |
| getItalicAngle | back to summary |
|---|---|
| public float getItalicAngle() This will get the italic angle for the font.
| |
| getLeading | back to summary |
|---|---|
| public float getLeading() This will get the leading for the font.
| |
| getMaxWidth | back to summary |
|---|---|
| public float getMaxWidth() This will get the max width for the font.
| |
| getMissingWidth | back to summary |
|---|---|
| public float getMissingWidth() This will get the missing width for the font from the /MissingWidth dictionary entry.
| |
| getPanose | back to summary |
|---|---|
| public PDPanose getPanose() Returns the Panose entry of the Style dictionary, if any.
| |
| getStemH | back to summary |
|---|---|
| public float getStemH() This will get the stemH for the font.
| |
| getStemV | back to summary |
|---|---|
| public float getStemV() This will get the stemV for the font.
| |
| getXHeight | back to summary |
|---|---|
| public float getXHeight() This will get the x height for the font.
| |
| hasMissingWidth | back to summary |
|---|---|
| public boolean hasMissingWidth() Returns true if the missing widths entry is present in the font descriptor.
| |
| hasWidths | back to summary |
|---|---|
| public boolean hasWidths() Returns true if widths are present in the font descriptor.
| |
| isAllCap | back to summary |
|---|---|
| public boolean isAllCap() A convenience method that checks the flag bit.
| |
| isFixedPitch | back to summary |
|---|---|
| public boolean isFixedPitch() A convenience method that checks the flag bit.
| |
| isFlagBitOn | back to summary |
|---|---|
| private boolean isFlagBitOn(int bit) | |
| isForceBold | back to summary |
|---|---|
| public boolean isForceBold() A convenience method that checks the flag bit.
| |
| isItalic | back to summary |
|---|---|
| public boolean isItalic() A convenience method that checks the flag bit.
| |
| isNonSymbolic | back to summary |
|---|---|
| public boolean isNonSymbolic() A convenience method that checks the flag bit.
| |
| isScript | back to summary |
|---|---|
| public boolean isScript() A convenience method that checks the flag bit.
| |
| isSerif | back to summary |
|---|---|
| public boolean isSerif() A convenience method that checks the flag bit.
| |
| isSmallCap | back to summary |
|---|---|
| public boolean isSmallCap() A convenience method that checks the flag bit.
| |
| isSymbolic | back to summary |
|---|---|
| public boolean isSymbolic() A convenience method that checks the flag bit.
| |
| setAllCap | back to summary |
|---|---|
| public void setAllCap(boolean flag) A convenience method that sets the flag bit.
| |
| setAscent | back to summary |
|---|---|
| public void setAscent(float ascent) This will set the ascent for the font.
| |
| setAverageWidth | back to summary |
|---|---|
| public void setAverageWidth(float averageWidth) This will set the average width for the font.
| |
| setCapHeight | back to summary |
|---|---|
| public void setCapHeight(float capHeight) This will set the cap height for the font.
| |
| setCharacterSet | back to summary |
|---|---|
| public void setCharacterSet(String charSet) This will set the character set for the font.
| |
| setCIDSet | back to summary |
|---|---|
| public void setCIDSet(PDStream stream) Set a stream containing a CIDSet.
| |
| setDescent | back to summary |
|---|---|
| public void setDescent(float descent) This will set the descent for the font.
| |
| setFixedPitch | back to summary |
|---|---|
| public void setFixedPitch(boolean flag) A convenience method that sets the flag bit.
| |
| setFlagBit | back to summary |
|---|---|
| private void setFlagBit(int bit, boolean value) | |
| setFlags | back to summary |
|---|---|
| public void setFlags(int flags) This will set the font flags.
| |
| setFontBoundingBox | back to summary |
|---|---|
| public void setFontBoundingBox(PDRectangle rect) Set the fonts bounding box.
| |
| setFontFamily | back to summary |
|---|---|
| public void setFontFamily(String fontFamily) This will set the font family.
| |
| setFontFile | back to summary |
|---|---|
| public void setFontFile(PDStream type1Stream) Set the type 1 font program.
| |
| setFontFile2 | back to summary |
|---|---|
| public void setFontFile2(PDStream ttfStream) Set the true type font program.
| |
| setFontFile3 | back to summary |
|---|---|
| public void setFontFile3(PDStream stream) Set a stream containing a font program that is not true type or type 1.
| |
| setFontName | back to summary |
|---|---|
| public void setFontName(String fontName) This will set the font name.
| |
| setFontStretch | back to summary |
|---|---|
| public void setFontStretch(String fontStretch) This will set the font stretch.
| |
| setFontWeight | back to summary |
|---|---|
| public void setFontWeight(float fontWeight) Set the weight of the font.
| |
| setForceBold | back to summary |
|---|---|
| public void setForceBold(boolean flag) A convenience method that sets the flag bit.
| |
| setItalic | back to summary |
|---|---|
| public void setItalic(boolean flag) A convenience method that sets the flag bit.
| |
| setItalicAngle | back to summary |
|---|---|
| public void setItalicAngle(float angle) This will set the italic angle for the font.
| |
| setLeading | back to summary |
|---|---|
| public void setLeading(float leading) This will set the leading for the font.
| |
| setMaxWidth | back to summary |
|---|---|
| public void setMaxWidth(float maxWidth) This will set the max width for the font.
| |
| setMissingWidth | back to summary |
|---|---|
| public void setMissingWidth(float missingWidth) This will set the missing width for the font.
| |
| setNonSymbolic | back to summary |
|---|---|
| public void setNonSymbolic(boolean flag) A convenience method that sets the flag bit.
| |
| setScript | back to summary |
|---|---|
| public void setScript(boolean flag) A convenience method that sets the flag bit.
| |
| setSerif | back to summary |
|---|---|
| public void setSerif(boolean flag) A convenience method that sets the flag bit.
| |
| setSmallCap | back to summary |
|---|---|
| public void setSmallCap(boolean flag) A convenience method that sets the flag bit.
| |
| setStemH | back to summary |
|---|---|
| public void setStemH(float stemH) This will set the stem H for the font.
| |
| setStemV | back to summary |
|---|---|
| public void setStemV(float stemV) This will set the stem V for the font.
| |
| setSymbolic | back to summary |
|---|---|
| public void setSymbolic(boolean flag) A convenience method that sets the flag bit.
| |
| setXHeight | back to summary |
|---|---|
| public void setXHeight(float xHeight) This will set the x height for the font.
| |