DynamicPDF by ceTe Software

com.cete.dynamicpdf.text
Class TrueTypeFont

java.lang.Object
  |
  +--com.cete.dynamicpdf.Resource
        |
        +--com.cete.dynamicpdf.Font
              |
              +--com.cete.dynamicpdf.text.TrueTypeFont
All Implemented Interfaces:
IFontSubsettable

Deprecated. As of DynamicPDF v5.0.0, replaced by OpenTypeFont

public class TrueTypeFont
extends Font
implements IFontSubsettable

Represents a TrueType font.

Licensing:
This class is a DynamicPDF Generator Professional Edition feature. One of the following licenses is required for non-evaluation usage:


Constructor Summary
TrueTypeFont(byte[] bytes)
          Deprecated. As of DynamicPDF v5.0.0, replaced by OpenTypeFont
TrueTypeFont(byte[] bytes, LineBreaker lineBreaker)
          Deprecated. As of DynamicPDF v5.0.0, replaced by OpenTypeFont
TrueTypeFont(java.lang.String filePath)
          Deprecated. As of DynamicPDF v5.0.0, replaced by OpenTypeFont
TrueTypeFont(java.lang.String filePath, LineBreaker lineBreaker)
          Deprecated. As of DynamicPDF v5.0.0, replaced by OpenTypeFont
 
Method Summary
 void draw(DocumentWriter writer)
          Deprecated. As of DynamicPDF v5.0.0, replaced by OpenTypeFont
 short getAscender()
          Deprecated. As of DynamicPDF v5.0.0, replaced by OpenTypeFont
 short getDescender()
          Deprecated. As of DynamicPDF v5.0.0, replaced by OpenTypeFont
 boolean getEmbed()
          Deprecated. As of DynamicPDF v5.0.0, replaced by OpenTypeFont
 FontSubsetter getFontSubsetter()
          Deprecated. As of DynamicPDF v5.0.0, replaced by OpenTypeFont
 int getGlyphWidth(char glyph)
          Deprecated. As of DynamicPDF v5.0.0, replaced by OpenTypeFont
 float getKernValue(char left, char right)
          Deprecated. As of DynamicPDF v5.0.0, replaced by OpenTypeFont
 LineBreaker getLineBreaker()
          Deprecated. As of DynamicPDF v5.0.0, replaced by OpenTypeFont
 short getLineGap()
          Deprecated. As of DynamicPDF v5.0.0, replaced by OpenTypeFont
 java.lang.String getName()
          Deprecated. As of DynamicPDF v5.0.0, replaced by OpenTypeFont
 int getRequiredPdfObjects()
          Deprecated. As of DynamicPDF v5.0.0, replaced by OpenTypeFont
 boolean hasKerning()
          Deprecated. As of DynamicPDF v5.0.0, replaced by OpenTypeFont
 void setEmbed(boolean value)
          Deprecated. As of DynamicPDF v5.0.0, replaced by OpenTypeFont
 
Methods inherited from class com.cete.dynamicpdf.Font
getAscender, getBaseLine, getCeTeBullets, getCourier, getCourierBold, getCourierBoldOblique, getCourierOblique, getDefaultLeading, getDescender, getEncoder, getFormFontName, 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
 

Constructor Detail

TrueTypeFont

public TrueTypeFont(java.lang.String filePath)
Deprecated. As of DynamicPDF v5.0.0, replaced by OpenTypeFont

Initializes a new instance of the TrueTypeFont class.

Parameters:
filePath - Physical file path to the TrueType font file.

TrueTypeFont

public TrueTypeFont(byte[] bytes)
Deprecated. As of DynamicPDF v5.0.0, replaced by OpenTypeFont

Initializes a new instance of the TrueTypeFont class.

Parameters:
bytes - TrueType font byte array.

TrueTypeFont

public TrueTypeFont(byte[] bytes,
                    LineBreaker lineBreaker)
Deprecated. As of DynamicPDF v5.0.0, replaced by OpenTypeFont

Initializes a new instance of the TrueTypeFont class.

Parameters:
bytes - TrueType font file byte array.
lineBreaker - Line breaker to use for the TrueType font.
See Also:
LineBreaker

TrueTypeFont

public TrueTypeFont(java.lang.String filePath,
                    LineBreaker lineBreaker)
Deprecated. As of DynamicPDF v5.0.0, replaced by OpenTypeFont

Initializes a new instance of the TrueTypeFont class.

Parameters:
filePath - Physical file path to the TrueType font file.
lineBreaker - Line breaker to use for the TrueType font.
See Also:
LineBreaker
Method Detail

getRequiredPdfObjects

public int getRequiredPdfObjects()
Deprecated. As of DynamicPDF v5.0.0, replaced by OpenTypeFont

Gets the number of PDF objects required by the TrueType font.

Overrides:
getRequiredPdfObjects in class Resource
Returns:
Number of PDF objects required by the TrueType font.

getDescender

public short getDescender()
Deprecated. As of DynamicPDF v5.0.0, replaced by OpenTypeFont

Gets the descender for the font.

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

getAscender

public short getAscender()
Deprecated. As of DynamicPDF v5.0.0, replaced by OpenTypeFont

Gets the ascender for the font.

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

getLineGap

public short getLineGap()
Deprecated. As of DynamicPDF v5.0.0, replaced by OpenTypeFont

Gets the line gap for the font.

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

getName

public java.lang.String getName()
Deprecated. As of DynamicPDF v5.0.0, replaced by OpenTypeFont

Gets the name of the font.

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

getEmbed

public boolean getEmbed()
Deprecated. As of DynamicPDF v5.0.0, replaced by OpenTypeFont

Gets a value indicating if the font should be embedded.

Returns:
boolean value indicating if the font should be embedded.

setEmbed

public void setEmbed(boolean value)
Deprecated. As of DynamicPDF v5.0.0, replaced by OpenTypeFont

Sets a value indicating if the font should be embedded.

Parameters:
value - The value indicating if the font should be embedded.

getLineBreaker

public LineBreaker getLineBreaker()
Deprecated. As of DynamicPDF v5.0.0, replaced by OpenTypeFont

Gets the default line breaker for the font.

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

draw

public void draw(DocumentWriter writer)
Deprecated. As of DynamicPDF v5.0.0, replaced by OpenTypeFont

Draws the TrueType font to the given DocumentWriter object.

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

getGlyphWidth

public int getGlyphWidth(char glyph)
Deprecated. As of DynamicPDF v5.0.0, replaced by OpenTypeFont

Returns the mwidth of a glyph.

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

getFontSubsetter

public FontSubsetter getFontSubsetter()
Deprecated. As of DynamicPDF v5.0.0, replaced by OpenTypeFont

Returns a font subsetter for the TrueType font.

Specified by:
getFontSubsetter in interface IFontSubsettable
Returns:
FontSubsetter object to use for the font.
See Also:
FontSubsetter

hasKerning

public boolean hasKerning()
Deprecated. As of DynamicPDF v5.0.0, replaced by OpenTypeFont

Returns whether the font has inbuilt kerning pairs.

Overrides:
hasKerning in class Font
Returns:
true, if the font has inbuilt kerning pair.

getKernValue

public float getKernValue(char left,
                          char right)
Deprecated. As of DynamicPDF v5.0.0, replaced by OpenTypeFont

Returns the kern value correspoding to the given glyph combination.

Overrides:
getKernValue in class Font
Parameters:
left - Left glyph.
right - Right glyph.
Returns:
Kern value correponds to the combination given.

DynamicPDF by ceTe Software

API Reference for DynamicPDFTM v6.0 for Java generated on February 4, 2011
© Copyright 2011, ceTe Software