fop 0.94

org.apache.fop.fonts
Class Typeface

java.lang.Object
  extended by org.apache.fop.fonts.Typeface
All Implemented Interfaces:
FontMetrics
Direct Known Subclasses:
AFPFont, Courier, CourierBold, CourierBoldOblique, CourierOblique, CustomFont, FontMetricsMapper, Helvetica, HelveticaBold, HelveticaBoldOblique, HelveticaOblique, LazyFont, Symbol, TimesBold, TimesBoldItalic, TimesItalic, TimesRoman, ZapfDingbats

public abstract class Typeface
extends java.lang.Object
implements FontMetrics

Base class for PDF font classes


Constructor Summary
Typeface()
           
 
Method Summary
abstract  java.lang.String getEncoding()
          Get the encoding of the font.
 int getMaxAscent(int size)
          Returns the maximum ascent of the font described by this FontMetrics object.
abstract  boolean hasChar(char c)
          Determines whether this font contains a particular character/glyph.
 boolean isMultiByte()
          Determines whether the font is a multibyte font.
abstract  char mapChar(char c)
          Map a Unicode character to a code point in the font.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.fop.fonts.FontMetrics
getAscender, getCapHeight, getDescender, getFontName, getFontType, getKerningInfo, getWidth, getWidths, getXHeight, hasKerningInfo
 

Constructor Detail

Typeface

public Typeface()
Method Detail

getEncoding

public abstract java.lang.String getEncoding()
Get the encoding of the font.

Returns:
the encoding

mapChar

public abstract char mapChar(char c)
Map a Unicode character to a code point in the font.

Parameters:
c - character to map
Returns:
the mapped character

hasChar

public abstract boolean hasChar(char c)
Determines whether this font contains a particular character/glyph.

Parameters:
c - character to check
Returns:
True if the character is supported, Falso otherwise

isMultiByte

public boolean isMultiByte()
Determines whether the font is a multibyte font.

Returns:
True if it is multibyte

getMaxAscent

public int getMaxAscent(int size)
Description copied from interface: FontMetrics
Returns the maximum ascent of the font described by this FontMetrics object. Note: This is not the same as getAscender().

Specified by:
getMaxAscent in interface FontMetrics
Parameters:
size - font size
Returns:
ascent in milliponts
See Also:
FontMetrics.getMaxAscent(int)

fop 0.94

Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.