jPodRenderer PDF library

de.intarsys.pdf.platform.cwt.font
Interface IPlatformFont

All Superinterfaces:
IPlatformGlyphsFactory
All Known Implementing Classes:
FreetypeFont, NullPlatformFont, Type3Font

public interface IPlatformFont
extends IPlatformGlyphsFactory

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

getAscent

int getAscent()
The ascent of this font over the baseline.

Returns:
The ascent of this font over the baseline.

getBBox

Rectangle2D getBBox()
A bounding box for all glyphs in the font.

Returns:
A bounding box for all glyphs in the font.

getCharIndex

int getCharIndex(char unicode)
The index into the font characters for the unicode character.

This is needed for example when creating Type0 fonts with TrueType CID fonts.

Parameters:
unicode -
Returns:
The index into the font characters for the unicode character.

getDescent

int getDescent()
The descent of this font below the baseline.

Returns:
The descent of this font below the baseline.

getHeight

int getHeight()
The height of this font. This will be put in the /CapHeight entry in the font descriptor.

Returns:
The height of this font

getPDFont

de.intarsys.pdf.font.PDFont getPDFont()
The associated PDFont.

Returns:
The associated PDFont.

getUnderlinePosition

int getUnderlinePosition()
The underline position in PDF glyph space.

Returns:
The underline position in PDF glyph space.

getUnderlineThickness

int getUnderlineThickness()
The underline thickness in PDF glyph space.

Returns:
The underline thickness in PDF glyph space.

isBoldStyle

boolean isBoldStyle()
true if this font is in a bold style.

Returns:
true if this font is in a bold style.

isItalicStyle

boolean isItalicStyle()
true if this font is in in italic style.

Returns:
true if this font is in in italic style.

isMonospaced

boolean isMonospaced()
true if this font has fixed width characters.

Returns:
true if this font has fixed width characters.

isSymbolFont

boolean isSymbolFont()
true if this font has an internal encoding and shouldn't be accessed using normal characters codes.

Returns:
true if this font has an internal encoding

saveState

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").

Parameters:
device -
oldState -
newState -

textStateChanged

void textStateChanged(ICSPlatformDevice device)
This is forwarded from the 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.

Parameters:
device -

jPodRenderer PDF library

Copyright © 2008 intarsys consulting GmbH. All Rights Reserved.