DynamicPDF by ceTe Software

com.cete.dynamicpdf.text
Class CoreLatinFont

java.lang.Object
  |
  +--com.cete.dynamicpdf.Resource
        |
        +--com.cete.dynamicpdf.Font
              |
              +--com.cete.dynamicpdf.text.FormFont
                    |
                    +--com.cete.dynamicpdf.text.CoreLatinFont
Direct Known Subclasses:
Courier, CourierBold, CourierBoldOblique, CourierOblique, Helvetica, HelveticaBold, HelveticaBoldOblique, HelveticaOblique, TimesBold, TimesBoldItalic, TimesItalic, TimesRoman

public abstract class CoreLatinFont
extends FormFont

Represents a core latin font.

Licensing:
This class is a DynamicPDF Generator Community Edition feature.


Method Summary
 void draw(DocumentWriter writer)
          Draws the font definition to the given DocumentWriter object.
 short getAscender()
          Gets the ascender for the font.
 short getDescender()
          Gets the descender for the font.
 int getGlyphWidth(char glyph)
          Returns the mwidth of a glyph.
 LineBreaker getLineBreaker()
          Gets the default line breaker for the font.
 short getLineGap()
          Gets the line gap for the font.
 java.lang.String getName()
          Gets the name of the font.
 int getRequiredPdfObjects()
          Gets the number of PDF objects required by the core Latin font.
 SingleByteEncoder getSingleByteEncoder()
          Gets the single byte encoder for the font.
 
Methods inherited from class com.cete.dynamicpdf.text.FormFont
getFormFontName
 
Methods inherited from class com.cete.dynamicpdf.Font
getAscender, getBaseLine, getCeTeBullets, getCourier, getCourierBold, getCourierBoldOblique, getCourierOblique, getDefaultLeading, getDescender, getEncoder, getHanyangSystemsGothicMedium, getHanyangSystemsShinMyeongJoMedium, getHeiseiKakuGothicW5, getHeiseiMinchoW3, getHelvetica, getHelveticaBold, getHelveticaBoldOblique, getHelveticaOblique, getLineGap, getMonotypeHeiMedium, getMonotypeSungLight, getResourceType, getSinoTypeSongLight, getSymbol, getTextLines, getTextLines, getTextWidth, getTextWidth, getTimesBold, getTimesBoldItalic, getTimesItalic, getTimesRoman, getZapfDingbats
 
Methods inherited from class com.cete.dynamicpdf.Resource
getUid, newUid
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

draw

public void draw(DocumentWriter writer)
Draws the font definition to the given DocumentWriter object.

Specified by:
draw in class Resource
Parameters:
writer - DocumentWriter object to receive the core font's output.
See Also:
DocumentWriter

getGlyphWidth

public int getGlyphWidth(char glyph)
Returns the mwidth of a glyph.

Specified by:
getGlyphWidth in class Font
Parameters:
glyph - char glyph whose mwidth is to be returned.
Returns:
Mwidth of glyph.

getDescender

public short getDescender()
Gets the descender for the font.

Specified by:
getDescender in class Font
Returns:
short descender for the font.

getAscender

public short getAscender()
Gets the ascender for the font.

Specified by:
getAscender in class Font
Returns:
short ascender for the font.

getLineGap

public short getLineGap()
Gets the line gap for the font.

Overrides:
getLineGap in class Font
Returns:
short line gap for the font.

getRequiredPdfObjects

public int getRequiredPdfObjects()
Gets the number of PDF objects required by the core Latin font.

Overrides:
getRequiredPdfObjects in class Resource
Returns:
int number of PDF objects required by the core latin font.

getName

public java.lang.String getName()
Gets the name of the font.

Specified by:
getName in class Font
Returns:
String name of the font.

getSingleByteEncoder

public SingleByteEncoder getSingleByteEncoder()
Gets the single byte encoder for the font.

Returns:
SingleByteEncoder for the font.

getLineBreaker

public LineBreaker getLineBreaker()
Gets the default line breaker for the font.

Specified by:
getLineBreaker in class Font
Returns:
default LineBreaker for the font.

DynamicPDF by ceTe Software

API Reference for DynamicPDFTM v4.0.1 for Java generated on October 06, 2006
© Copyright 2006, ceTe Software