|
Multivalent API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.pt.awt.NFont
com.pt.awt.font.NFontSimple
multivalent.std.adaptor.pdf.NFontType3
Type 3 font, with individual glyphs written in PDF.
| Field Summary | |
|---|---|
static java.lang.String |
FORMAT
|
| Fields inherited from class com.pt.awt.font.NFontSimple |
|---|
bbox_, encoding_, firstch_, intrinsic_, lastch_, m_, missingwidth_, newascent_, newdescent_, newwidths_, pdfbad_ |
| Constructor Summary | |
|---|---|
NFontType3(Dict fontdict,
PDFReader pdfr,
PDF pdf)
|
|
| Method Summary | |
|---|---|
boolean |
canDisplayEchar(int ech)
Can the character ech in the font's encoding be rendered? |
NFontType3 |
deriveFont(java.awt.geom.AffineTransform at)
Transform all glyphs by arbitrary affine transform. |
NFontType3 |
deriveFont(com.pt.awt.font.Encoding encoding,
com.pt.awt.font.CMap toUnicode)
Encodings are for fonts byte-addressed glyphs -- 256 or fewer active glyphs. |
NFontType3 |
deriveFont(float size)
Creates font a new pointsize in pixels. |
void |
drawEstring(java.awt.Graphics2D g,
java.lang.String estr,
float x,
float y,
long layout,
int mode,
java.awt.Color strokecolor)
Draws string str in font's encoding at (x,y) in drawing mode mode. |
java.awt.geom.Point2D |
echarAdvance(int ech)
|
java.lang.String |
getFamily()
Returns name of font, such as "Times". |
java.lang.String |
getFormat()
Returns primary format, such as "Type1" or "OpenType". |
java.lang.String |
getName()
Returns the PostScript name of font, such as "Times-Roman". |
int |
getNumGlyphs()
Returns number of glyphs defined in font. |
char |
getSpaceEchar()
Returns the character that seems to be used as a space in the current encoding, or NFont.NOTDEF_CHAR if no such character. |
void |
setPage(Dict page)
Type 3 fonts potentially need the /Resources dictionary for the current page,
so set this before using this font on the page. |
| Methods inherited from class com.pt.awt.font.NFontSimple |
|---|
deriveFont, getEncoding, getMaxCharBounds |
| Methods inherited from class com.pt.awt.NFont |
|---|
canDisplay, charAdvance, drawString, drawString, estringAdvance, fromUnicode, getAscent, getCopyright, getDescent, getDesigner, getEstringBounds, getFlags, getHeight, getInstance, getLeading, getLogger, getMaxGlyphNum, getMultiplex, getRights, getSize, getSource, getStringBounds, getStringBounds, getSubformat, getTransform, getUnicode, getVersion, getWeight, isHinted, isTransformed, isUseBitmaps, setManager, setUseBitmaps, strFlags, stringAdvance, stringAdvance, strRights, strWeight, toString, toUnicode |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String FORMAT
| Constructor Detail |
|---|
public NFontType3(Dict fontdict,
PDFReader pdfr,
PDF pdf)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
public NFontType3 deriveFont(float size)
NFontderiveFont methods use this to make a clone and might make subsequent changes.
deriveFont in class NFont
public NFontType3 deriveFont(com.pt.awt.font.Encoding encoding,
com.pt.awt.font.CMap toUnicode)
com.pt.awt.font.NFontSimple
deriveFont in class com.pt.awt.font.NFontSimplepublic NFontType3 deriveFont(java.awt.geom.AffineTransform at)
NFont
deriveFont in class NFontpublic void setPage(Dict page)
/Resources dictionary for the current page,
so set this before using this font on the page.
(This is sloppy but valid PDF -- the document should have a local /Resources.)
public java.lang.String getName()
NFont
getName in class NFontpublic java.lang.String getFamily()
NFont
getFamily in class NFontpublic java.lang.String getFormat()
NFont
getFormat in class NFontpublic int getNumGlyphs()
NFont
getNumGlyphs in class NFontpublic boolean canDisplayEchar(int ech)
NFont
canDisplayEchar in class NFontpublic char getSpaceEchar()
NFontNFont.NOTDEF_CHAR if no such character.
getSpaceEchar in class NFontpublic java.awt.geom.Point2D echarAdvance(int ech)
echarAdvance in class NFont
public void drawEstring(java.awt.Graphics2D g,
java.lang.String estr,
float x,
float y,
long layout,
int mode,
java.awt.Color strokecolor)
NFontRenderingHints.KEY_ANTIALIASING hint on the Graphics2D.
drawEstring in class NFont
|
Multivalent API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||