Package com.sun.pdfview.font
Class PDFFontDescriptor
java.lang.Object
com.sun.pdfview.font.PDFFontDescriptor
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Font contains no lowercase letters.private int
Holds value of property ascent.private int
Holds value of property avgWidth.private int
Holds value of property capHeight.private PDFObject
Holds value of property charSet.private int
Holds value of property descent.static final int
All glyphs have the same width.private int
Holds value of property flags.private Rectangle2D.Float
Holds value of property fontBBox.private String
Holds the optional FontFamily (PDF 1.5)private PDFObject
Holds value of property fontFile.private PDFObject
Holds value of property fontFile2.private PDFObject
Holds value of property fontFile3.private String
Holds value of property fontName.private String
Holds the optional FontStretch (PDF 1.5)private int
Holds the optional FontWeight (PDF 1.5)static final int
Determines whether bold glyphs shall be painted with extra pixels even at very small text sizes.static final int
Glyphs have dominant vertical strokes that are slanted.private int
Holds value of property italicAngle.private int
Holds value of property leading.private int
Holds value of property maxWidth.private int
Holds value of property misingWidth.static final int
Font uses the Adobe standard Latic character set.static final int
Glyphs resemble cursive handwriting.static final int
Glyphs have serifs.static final int
Font contains both uppercase and lowercase letters..private int
Holds value of property stemH.private int
Holds value of property stemV.static final int
Font contains glyphs outside the Adobe standard Latin.private int
Holds value of property xHeight. -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance of PDFFontDescriptorPDFFontDescriptor
(String basefont) Creates a new instance of PDFFontDescriptor -
Method Summary
Modifier and TypeMethodDescriptionint
Getter for property ascent.int
Getter for property avgWidth.int
Getter for property capHeight.Getter for property charSet.int
Getter for property descent.int
getFlags()
Getter for property flags.Getter for property fontBBox.Getter for property fontFamily.Getter for property fontFile.Getter for property fontFile2.Getter for property fontFile3.Getter for property fontName.Getter for property fontStretch.int
Getter for property fontWeight.int
Getter for property italicAngle.int
Getter for property leading.int
Getter for property maxWidth.int
Getter for property misingWidth.int
getStemH()
Getter for property stemH.int
getStemV()
Getter for property stemV.int
Getter for property xHeight.void
setAscent
(int ascent) Setter for property ascent.void
setAvgWidth
(int avgWidth) Setter for property avgWidth.void
setCapHeight
(int capHeight) Setter for property capHeight.void
setCharSet
(PDFObject charSet) Setter for property charSet.void
setDescent
(int descent) Setter for property descent.void
setFlags
(int flags) Setter for property flags.void
setFontBBox
(Rectangle2D.Float fontBBox) Setter for property fontBBox.void
setFontFamily
(String fontFamily) Setter for property fontFamily.void
setFontFile
(PDFObject fontFile) Setter for property fontFile.void
setFontFile2
(PDFObject fontFile2) Setter for property fontFile2.void
setFontFile3
(PDFObject fontFile3) Setter for property fontFile3.void
setFontName
(String fontName) Setter for property fontName.void
setFontStretch
(String fontStretch) Setter for property fontStretch.void
setFontWeight
(int fontWeight) Setter for property fontWeight.void
setItalicAngle
(int italicAngle) Setter for property italicAngle.void
setLeading
(int leading) Setter for property leading.void
setMaxWidth
(int maxWidth) Setter for property maxWidth.void
setMissingWidth
(int missingWidth) Setter for property misingWidth.void
setStemH
(int stemH) Setter for property stemH.void
setStemV
(int stemV) Setter for property stemV.void
setXHeight
(int xHeight) Setter for property xHeight.
-
Field Details
-
FIXED_PITCH
public static final int FIXED_PITCHAll glyphs have the same width.- See Also:
-
SERIF
public static final int SERIFGlyphs have serifs.- See Also:
-
SYMBOLIC
public static final int SYMBOLICFont contains glyphs outside the Adobe standard Latin.- See Also:
-
SCRIPT
public static final int SCRIPTGlyphs resemble cursive handwriting.- See Also:
-
NONSYMBOLIC
public static final int NONSYMBOLICFont uses the Adobe standard Latic character set.- See Also:
-
ITALIC
public static final int ITALICGlyphs have dominant vertical strokes that are slanted.- See Also:
-
ALLCAP
public static final int ALLCAPFont contains no lowercase letters.- See Also:
-
SMALLCAP
public static final int SMALLCAPFont contains both uppercase and lowercase letters..- See Also:
-
FORCEBOLD
public static final int FORCEBOLDDetermines whether bold glyphs shall be painted with extra pixels even at very small text sizes.- See Also:
-
ascent
private int ascentHolds value of property ascent. -
capHeight
private int capHeightHolds value of property capHeight. -
descent
private int descentHolds value of property descent. -
flags
private int flagsHolds value of property flags. -
fontFamily
Holds the optional FontFamily (PDF 1.5) -
fontName
Holds value of property fontName. -
fontStretch
Holds the optional FontStretch (PDF 1.5) -
fontWeight
private int fontWeightHolds the optional FontWeight (PDF 1.5) -
italicAngle
private int italicAngleHolds value of property italicAngle. -
stemV
private int stemVHolds value of property stemV. -
avgWidth
private int avgWidthHolds value of property avgWidth. -
fontFile
Holds value of property fontFile. -
fontFile2
Holds value of property fontFile2. -
fontFile3
Holds value of property fontFile3. -
leading
private int leadingHolds value of property leading. -
maxWidth
private int maxWidthHolds value of property maxWidth. -
missingWidth
private int missingWidthHolds value of property misingWidth. -
stemH
private int stemHHolds value of property stemH. -
xHeight
private int xHeightHolds value of property xHeight. -
charSet
Holds value of property charSet. -
fontBBox
Holds value of property fontBBox.
-
-
Constructor Details
-
PDFFontDescriptor
Creates a new instance of PDFFontDescriptor -
PDFFontDescriptor
Creates a new instance of PDFFontDescriptor- Throws:
IOException
-
-
Method Details
-
getAscent
public int getAscent()Getter for property ascent.- Returns:
- Value of property ascent.
-
setAscent
public void setAscent(int ascent) Setter for property ascent.- Parameters:
ascent
- New value of property ascent.
-
getCapHeight
public int getCapHeight()Getter for property capHeight.- Returns:
- Value of property capHeight.
-
setCapHeight
public void setCapHeight(int capHeight) Setter for property capHeight.- Parameters:
capHeight
- New value of property capHeight.
-
getDescent
public int getDescent()Getter for property descent.- Returns:
- Value of property descent.
-
setDescent
public void setDescent(int descent) Setter for property descent.- Parameters:
descent
- New value of property descent.
-
getFlags
public int getFlags()Getter for property flags.- Returns:
- Value of property flags.
-
setFlags
public void setFlags(int flags) Setter for property flags.- Parameters:
flags
- New value of property flags.
-
getFontFamily
Getter for property fontFamily. Option (PDF 1.5)- Returns:
- Value of the property fontFamily
-
setFontFamily
Setter for property fontFamily.- Parameters:
fontFamily
- New value of property fontFamily.
-
getFontName
Getter for property fontName.- Returns:
- Value of property fontName.
-
setFontName
Setter for property fontName.- Parameters:
fontName
- New value of property fontName.
-
getFontStretch
Getter for property fontStretch. Option (PDF 1.5)- Returns:
- Value of the property fontStretch
-
setFontStretch
Setter for property fontStretch. Possible values are: UltraCondensed, ExtraCondensed, Condensed, SemiCondensed, Normal, SemiExpanded, Expanded, ExtraExpanded or UltraExpanded We do not check at this time.- Parameters:
fontStretch
- New value of property fontStretch.
-
getFontWeight
public int getFontWeight()Getter for property fontWeight. Option (PDF 1.5)- Returns:
- Value of the property fontWeight
-
setFontWeight
public void setFontWeight(int fontWeight) Setter for property fontWeight. Possible values are: 100, 200, 300, 400, 500, 600, 700, 800, 900 We do not check at this time.- Parameters:
fontWeight
- New value of property fontWeight.
-
getItalicAngle
public int getItalicAngle()Getter for property italicAngle.- Returns:
- Value of property italicAngle.
-
setItalicAngle
public void setItalicAngle(int italicAngle) Setter for property italicAngle.- Parameters:
italicAngle
- New value of property italicAngle.
-
getStemV
public int getStemV()Getter for property stemV.- Returns:
- Value of property stemV.
-
setStemV
public void setStemV(int stemV) Setter for property stemV.- Parameters:
stemV
- New value of property stemV.
-
getAvgWidth
public int getAvgWidth()Getter for property avgWidth.- Returns:
- Value of property avgWidth.
-
setAvgWidth
public void setAvgWidth(int avgWidth) Setter for property avgWidth.- Parameters:
avgWidth
- New value of property avgWidth.
-
getFontFile
Getter for property fontFile.- Returns:
- Value of property fontFile.
-
setFontFile
Setter for property fontFile.- Parameters:
fontFile
- New value of property fontFile.
-
getFontFile2
Getter for property fontFile2.- Returns:
- Value of property fontFile2.
-
setFontFile2
Setter for property fontFile2.- Parameters:
fontFile2
- New value of property fontFile2.
-
getFontFile3
Getter for property fontFile3.- Returns:
- Value of property fontFile3.
-
setFontFile3
Setter for property fontFile3.- Parameters:
fontFile3
- New value of property fontFile3.
-
getLeading
public int getLeading()Getter for property leading.- Returns:
- Value of property leading.
-
setLeading
public void setLeading(int leading) Setter for property leading.- Parameters:
leading
- New value of property leading.
-
getMaxWidth
public int getMaxWidth()Getter for property maxWidth.- Returns:
- Value of property maxWidth.
-
setMaxWidth
public void setMaxWidth(int maxWidth) Setter for property maxWidth.- Parameters:
maxWidth
- New value of property maxWidth.
-
getMissingWidth
public int getMissingWidth()Getter for property misingWidth.- Returns:
- Value of property misingWidth.
-
setMissingWidth
public void setMissingWidth(int missingWidth) Setter for property misingWidth.- Parameters:
missingWidth
- New value of property misingWidth.
-
getStemH
public int getStemH()Getter for property stemH.- Returns:
- Value of property stemH.
-
setStemH
public void setStemH(int stemH) Setter for property stemH.- Parameters:
stemH
- New value of property stemH.
-
getXHeight
public int getXHeight()Getter for property xHeight.- Returns:
- Value of property xHeight.
-
setXHeight
public void setXHeight(int xHeight) Setter for property xHeight.- Parameters:
xHeight
- New value of property xHeight.
-
getCharSet
Getter for property charSet.- Returns:
- Value of property charSet.
-
setCharSet
Setter for property charSet.- Parameters:
charSet
- New value of property charSet.
-
getFontBBox
Getter for property fontBBox.- Returns:
- Value of property fontBBox.
-
setFontBBox
Setter for property fontBBox.- Parameters:
fontBBox
- New value of property fontBBox.
-