DynamicPDF by ceTe Software

com.cete.dynamicpdf.text
Class CoreLatinFont

java.lang.Object
  extended by com.cete.dynamicpdf.Resource
      extended by com.cete.dynamicpdf.Font
          extended by com.cete.dynamicpdf.text.FormFont
              extended by 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 resource 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 resource.
 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, getKernValue, getLineGap, getMonotypeHeiMedium, getMonotypeSungLight, getResourceType, getSinoTypeSongLight, getSymbol, getTextLines, getTextLines, getTextWidth, getTextWidth, getTimesBold, getTimesBoldItalic, getTimesItalic, getTimesRoman, getZapfDingbats, hasKerning
 
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)
Description copied from class: Resource
Draws the resource to the given DocumentWriter object.

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

getGlyphWidth

public int getGlyphWidth(char glyph)
Description copied from class: Font
Returns the mwidth of a glyph.

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

getDescender

public short getDescender()
Description copied from class: Font
Gets the descender for the font.

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

getAscender

public short getAscender()
Description copied from class: Font
Gets the ascender for the font.

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

getLineGap

public short getLineGap()
Description copied from class: Font
Gets the line gap for the font.

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

getRequiredPdfObjects

public int getRequiredPdfObjects()
Description copied from class: Resource
Gets the number of PDF objects required by the resource.

Overrides:
getRequiredPdfObjects in class Resource
Returns:
the number of PDF objects required by the resource.

getName

public java.lang.String getName()
Description copied from class: Font
Gets the name of the font.

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

getSingleByteEncoder

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

Returns:
the single byte encoder for the font.

getLineBreaker

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

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

DynamicPDF by ceTe Software

API Reference for DynamicPDF v10.04 for Java generated on September 25, 2019
© Copyright 2019, ceTe Software