|
jPodRenderer PDF library | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IPlatformFont
The abstraction of a platform font implementation.
Method Summary | |
---|---|
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. |
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. |
Methods inherited from interface de.intarsys.pdf.platform.cwt.font.IPlatformGlyphsFactory |
---|
createPlatformGlyphs |
Method Detail |
---|
int getAscent()
Rectangle2D getBBox()
int getCharIndex(char unicode)
unicode
character.
This is needed for example when creating Type0 fonts with TrueType CID fonts.
unicode
-
unicode
character.int getDescent()
int getHeight()
de.intarsys.pdf.font.PDFont getPDFont()
PDFont
.
PDFont
.int getUnderlinePosition()
int getUnderlineThickness()
boolean isBoldStyle()
true
if this font is in a bold style.
true
if this font is in a bold style.boolean isItalicStyle()
true
if this font is in in italic style.
true
if this font is in in italic style.boolean isMonospaced()
true
if this font has fixed width characters.
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.
true
if this font has an internal encodingvoid saveState(ICSPlatformDevice device, de.intarsys.pdf.content.GraphicsState oldState, de.intarsys.pdf.content.GraphicsState newState)
ICSPlatformDevice
in case the receiver
needs some special actions upon saving the graphics state (operator "q").
device
- oldState
- newState
- void textStateChanged(ICSPlatformDevice device)
ICSPlatformDevice
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.
device
-
|
jPodRenderer PDF library | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |