|
Gnostice PDFOne
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.gnostice.pdfone.fonts.PdfFont
com.gnostice.pdfone.fonts.PdfType1PFBFont
public class PdfType1PFBFont
Field Summary |
---|
Fields inherited from class com.gnostice.pdfone.fonts.PdfFont |
---|
BOLD, CID_TYPE_0, CID_TYPE_2, CJK_TYPE, EMBED_FULL, EMBED_SUBSET, FLAG_ALLCAP, FLAG_FIXEDPITCH, FLAG_FORCEBOLD, FLAG_ITALIC, FLAG_NONSYMBOLIC, FLAG_SCRIPT, FLAG_SERIF, FLAG_SMALLCAP, FLAG_SYMBOLIC, FONT_DESCRIPTOR, ITALIC, PLAIN, STROKE, STROKE_AND_FILL, TRUE_TYPE, TYPE_1, UNDERLINE |
Method Summary | |
---|---|
void |
dispose()
|
String |
getBaseFontName()
|
void |
getData(HashMap hm)
|
int |
getFirstChar()
|
PdfDict |
getFontDescriptor()
|
double |
getHeight()
Returns height of this font as specified in its font file. |
int |
getLastChar()
|
int |
getUnderlinePosition()
|
int |
getUnderlineThickness()
|
int |
getUnitsPerEm()
|
int |
getWidth(char c)
Returns width of character c , as mentioned in
this font's file. |
double |
getWidth(char c,
int mu)
Returns width of character c in this font in
specified measurement unit. |
int |
getWidth(String text)
Returns sum of widths of all characters in text ,
as mentioned in this font's file. |
double |
getWidth(String text,
int mu)
Returns width of text in the font in specified
measurement unit. |
int[] |
getWidths()
Returns an array of glyph widths of all characters in this font, arranged in the order of their character codes. |
void |
setStyle(int style)
Specifies this font's styles. |
Methods inherited from class com.gnostice.pdfone.fonts.PdfFont |
---|
adjustFontSize, clone, create, create, create, create, create, getAscent, getAvgWidth, getCapHeight, getColor, getDescent, getEmbedType, getEncoding, getFlags, getFontBBox, getItalicangle, getMaxWidth, getName, getPDFName, getSize, getStemH, getStemV, getStrokeColor, getStrokeWidth, getStyle, getType, getWidth, setColor, setFirstChar, setLastChar, setSize, setStrokeColor, setStrokeWidth, updateGlyphList, updateGlyphList, updateGlyphList |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void dispose() throws IOException
dispose
in class PdfFont
IOException
public String getBaseFontName()
getBaseFontName
in class PdfFont
public void getData(HashMap hm) throws IOException, PdfException
getData
in class PdfFont
IOException
PdfException
public PdfDict getFontDescriptor()
public double getHeight()
PdfFont
getHeight
in class PdfFont
public int getUnitsPerEm()
getUnitsPerEm
in class PdfFont
public int getUnderlinePosition()
getUnderlinePosition
in class PdfFont
public int getUnderlineThickness()
getUnderlineThickness
in class PdfFont
public int getFirstChar()
getFirstChar
in class PdfFont
public int getLastChar()
getLastChar
in class PdfFont
public int getWidth(char c)
PdfFont
c
, as mentioned in
this font's file.
getWidth
in class PdfFont
c
- single character
public int getWidth(String text)
PdfFont
text
,
as mentioned in this font's file.
getWidth
in class PdfFont
text
- piece of text
text
, as mentioned in this font's filepublic double getWidth(char c, int mu)
PdfFont
c
in this font in
specified measurement unit.
getWidth
in class PdfFont
c
- single charactermu
- measurement unit in which the width needs to be
expressed
public double getWidth(String text, int mu)
PdfFont
text
in the font in specified
measurement unit.
getWidth
in class PdfFont
text
- piece of textmu
- measurement unit in which the width needs to be
expressed
public int[] getWidths()
PdfFont
getWidths
in class PdfFont
public void setStyle(int style)
PdfFont
setStyle
in class PdfFont
style
- constant or combined value of constants specifying
this font's styles.PdfFont.getStyle()
|
Pro. Ed. v5.4 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |