org.apache.fop.fonts.base14

Class CourierBold

Implemented Interfaces:
FontMetrics

public class CourierBold
extends Typeface

Constructor Summary

CourierBold()
CourierBold(boolean enableKerning)

Method Summary

int
getAscender(int size)
int
getCapHeight(int size)
int
getDescender(int size)
String
getEmbedFontName()
String
getEncoding()
Get the encoding of the font.
Set
getFamilyNames()
int
getFirstChar()
String
getFontName()
FontType
getFontType()
String
getFullName()
java.util.Map
getKerningInfo()
int
getLastChar()
int
getWidth(int i, int size)
int[]
getWidths()
int
getXHeight(int size)
boolean
hasChar(char c)
Determines whether this font contains a particular character/glyph.
boolean
hasKerningInfo()
char
mapChar(char c)
Map a Unicode character to a code point in the font.

Methods inherited from class org.apache.fop.fonts.Typeface

getEncoding, getMaxAscent, hadMappingOperations, hasChar, isMultiByte, mapChar, notifyMapOperation

Constructor Details

CourierBold

public CourierBold()

CourierBold

public CourierBold(boolean enableKerning)

Method Details

getAscender

public int getAscender(int size)
Specified by:
getAscender in interface FontMetrics

getCapHeight

public int getCapHeight(int size)
Specified by:
getCapHeight in interface FontMetrics

getDescender

public int getDescender(int size)
Specified by:
getDescender in interface FontMetrics

getEmbedFontName

public String getEmbedFontName()
Specified by:
getEmbedFontName in interface FontMetrics

getEncoding

public String getEncoding()
Get the encoding of the font.
Overrides:
getEncoding in interface Typeface
Returns:
the encoding

getFamilyNames

public Set getFamilyNames()
Specified by:
getFamilyNames in interface FontMetrics

getFirstChar

public int getFirstChar()

getFontName

public String getFontName()
Specified by:
getFontName in interface FontMetrics

getFontType

public FontType getFontType()
Specified by:
getFontType in interface FontMetrics

getFullName

public String getFullName()
Specified by:
getFullName in interface FontMetrics

getKerningInfo

public java.util.Map getKerningInfo()
Specified by:
getKerningInfo in interface FontMetrics

getLastChar

public int getLastChar()

getWidth

public int getWidth(int i,
                    int size)
Specified by:
getWidth in interface FontMetrics

getWidths

public int[] getWidths()
Specified by:
getWidths in interface FontMetrics

getXHeight

public int getXHeight(int size)
Specified by:
getXHeight in interface FontMetrics

hasChar

public boolean hasChar(char c)
Determines whether this font contains a particular character/glyph.
Overrides:
hasChar in interface Typeface
Parameters:
c - character to check
Returns:
True if the character is supported, Falso otherwise

hasKerningInfo

public boolean hasKerningInfo()
Specified by:
hasKerningInfo in interface FontMetrics

mapChar

public char mapChar(char c)
Map a Unicode character to a code point in the font.
Overrides:
mapChar in interface Typeface
Parameters:
c - character to map
Returns:
the mapped character

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