jPodRenderer PDF library

de.intarsys.pdf.platform.cwt.font
Class NullPlatformFont

java.lang.Object
  extended by de.intarsys.pdf.platform.cwt.font.NullPlatformFont
All Implemented Interfaces:
IPlatformFont, IPlatformGlyphsFactory

public class NullPlatformFont
extends Object
implements IPlatformFont


Method Summary
 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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createPlatformGlyphs

public IPlatformGlyphs createPlatformGlyphs(de.intarsys.pdf.font.PDGlyphs glyphs)
Specified by:
createPlatformGlyphs in interface IPlatformGlyphsFactory

getAscent

public int getAscent()
Description copied from interface: IPlatformFont
The ascent of this font over the baseline.

Specified by:
getAscent in interface IPlatformFont
Returns:
The ascent of this font over the baseline.

getBBox

public Rectangle2D getBBox()
Description copied from interface: IPlatformFont
A bounding box for all glyphs in the font.

Specified by:
getBBox in interface IPlatformFont
Returns:
A bounding box for all glyphs in the font.

getCharIndex

public int getCharIndex(char unicode)
Description copied from interface: IPlatformFont
The index into the font characters for the unicode character.

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

Specified by:
getCharIndex in interface IPlatformFont
Returns:
The index into the font characters for the unicode character.

getDescent

public int getDescent()
Description copied from interface: IPlatformFont
The descent of this font below the baseline.

Specified by:
getDescent in interface IPlatformFont
Returns:
The descent of this font below the baseline.

getHeight

public int getHeight()
Description copied from interface: IPlatformFont
The height of this font. This will be put in the /CapHeight entry in the font descriptor.

Specified by:
getHeight in interface IPlatformFont
Returns:
The height of this font

getImpl

public Object getImpl()

getPDFont

public de.intarsys.pdf.font.PDFont getPDFont()
Description copied from interface: IPlatformFont
The associated PDFont.

Specified by:
getPDFont in interface IPlatformFont
Returns:
The associated PDFont.

getUnderlinePosition

public int getUnderlinePosition()
Description copied from interface: IPlatformFont
The underline position in PDF glyph space.

Specified by:
getUnderlinePosition in interface IPlatformFont
Returns:
The underline position in PDF glyph space.

getUnderlineThickness

public int getUnderlineThickness()
Description copied from interface: IPlatformFont
The underline thickness in PDF glyph space.

Specified by:
getUnderlineThickness in interface IPlatformFont
Returns:
The underline thickness in PDF glyph space.

isBoldStyle

public boolean isBoldStyle()
Description copied from interface: IPlatformFont
true if this font is in a bold style.

Specified by:
isBoldStyle in interface IPlatformFont
Returns:
true if this font is in a bold style.

isItalicStyle

public boolean isItalicStyle()
Description copied from interface: IPlatformFont
true if this font is in in italic style.

Specified by:
isItalicStyle in interface IPlatformFont
Returns:
true if this font is in in italic style.

isMonospaced

public boolean isMonospaced()
Description copied from interface: IPlatformFont
true if this font has fixed width characters.

Specified by:
isMonospaced in interface IPlatformFont
Returns:
true if this font has fixed width characters.

isSymbolFont

public boolean isSymbolFont()
Description copied from interface: IPlatformFont
true if this font has an internal encoding and shouldn't be accessed using normal characters codes.

Specified by:
isSymbolFont in interface IPlatformFont
Returns:
true if this font has an internal encoding

saveState

public void saveState(ICSPlatformDevice device,
                      de.intarsys.pdf.content.GraphicsState oldState,
                      de.intarsys.pdf.content.GraphicsState newState)
Description copied from interface: IPlatformFont
This is forwarded from the ICSPlatformDevice in case the receiver needs some special actions upon saving the graphics state (operator "q").

Specified by:
saveState in interface IPlatformFont

textStateChanged

public void textStateChanged(ICSPlatformDevice device)
Description copied from interface: IPlatformFont
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.

Specified by:
textStateChanged in interface IPlatformFont

jPodRenderer PDF library

Copyright © 2008 intarsys consulting GmbH. All Rights Reserved.