public class Type3Font extends Object implements IPlatformFont
| Modifier and Type | Method and Description |
|---|---|
IPlatformGlyphs |
createPlatformGlyphs(de.intarsys.pdf.font.PDGlyphs glyphs) |
int |
getAscent()
The ascent of this font over the baseline.
|
Rectangle2D |
getBBox()
A bounding box for all glyphs in the font.
|
int |
getCharIndex(char unicode)
The index into the font characters for the
unicode
character. |
int |
getDescent()
The descent of this font below the baseline.
|
int |
getHeight()
The height of this font.
|
Object |
getImpl() |
de.intarsys.pdf.font.PDFont |
getPDFont()
The associated
PDFont. |
int |
getUnderlinePosition()
The underline position in PDF glyph space.
|
int |
getUnderlineThickness()
The underline thickness in PDF glyph space.
|
boolean |
isBoldStyle()
true if this font is in a bold style. |
boolean |
isItalicStyle()
true if this font is in in italic style. |
boolean |
isMonospaced()
true if this font has fixed width characters. |
boolean |
isSymbolFont()
true if this font has an internal encoding and shouldn't
be accessed using normal characters codes. |
void |
saveState(ICSPlatformDevice device,
de.intarsys.pdf.content.GraphicsState oldState,
de.intarsys.pdf.content.GraphicsState newState)
This is forwarded from the
ICSPlatformDevice in case the receiver
needs some special actions upon saving the graphics state (operator "q"). |
void |
textStateChanged(ICSPlatformDevice device)
This is forwarded from the
ICSPlatformDevice to indicate a change
in the device text state. |
public IPlatformGlyphs createPlatformGlyphs(de.intarsys.pdf.font.PDGlyphs glyphs)
createPlatformGlyphs in interface IPlatformGlyphsFactorypublic int getAscent()
IPlatformFontgetAscent in interface IPlatformFontpublic Rectangle2D getBBox()
IPlatformFontgetBBox in interface IPlatformFontpublic int getCharIndex(char unicode)
IPlatformFontunicode
character.
This is needed for example when creating Type0 fonts with TrueType CID fonts.
getCharIndex in interface IPlatformFontunicode
character.public int getDescent()
IPlatformFontgetDescent in interface IPlatformFontpublic int getHeight()
IPlatformFontgetHeight in interface IPlatformFontpublic Object getImpl()
public de.intarsys.pdf.font.PDFont getPDFont()
IPlatformFontPDFont.getPDFont in interface IPlatformFontPDFont.public int getUnderlinePosition()
IPlatformFontgetUnderlinePosition in interface IPlatformFontpublic int getUnderlineThickness()
IPlatformFontgetUnderlineThickness in interface IPlatformFontpublic boolean isBoldStyle()
IPlatformFonttrue if this font is in a bold style.isBoldStyle in interface IPlatformFonttrue if this font is in a bold style.public boolean isItalicStyle()
IPlatformFonttrue if this font is in in italic style.isItalicStyle in interface IPlatformFonttrue if this font is in in italic style.public boolean isMonospaced()
IPlatformFonttrue if this font has fixed width characters.isMonospaced in interface IPlatformFonttrue if this font has fixed width characters.public boolean isSymbolFont()
IPlatformFonttrue if this font has an internal encoding and shouldn't
be accessed using normal characters codes.isSymbolFont in interface IPlatformFonttrue if this font has an internal encodingpublic void saveState(ICSPlatformDevice device, de.intarsys.pdf.content.GraphicsState oldState, de.intarsys.pdf.content.GraphicsState newState)
IPlatformFontICSPlatformDevice in case the receiver
needs some special actions upon saving the graphics state (operator "q").saveState in interface IPlatformFontpublic void textStateChanged(ICSPlatformDevice device)
IPlatformFontICSPlatformDevice to indicate a change
in the device text state.
Upon font change, this is called twice, one time for the old font and onetime for the new font.
textStateChanged in interface IPlatformFontCopyright © 2013 intarsys consulting GmbH. All Rights Reserved.