org.apache.fop.fonts

Class MultiByteFont

Implemented Interfaces:
FontDescriptor, FontMetrics, MutableFont

public class MultiByteFont
extends CIDFont

Generic MultiByte (CID) font

Field Summary

static char
INVALID_UNICODE_CHAR
The invalid Unicode character, suitable as a return value in methods that need to return an invalid character.

Fields inherited from class org.apache.fop.fonts.CIDFont

usedCharsIndex, usedGlyphs, usedGlyphsCount, usedGlyphsIndex, width

Constructor Summary

MultiByteFont()
Default constructor

Method Summary

CIDFontType
getCIDType()
char[]
getCharsUsed()
String
getCidBaseFont()
int
getDefaultWidth()
String
getEncoding()
String
getFontName()
String
getOrdering()
String
getRegistry()
int
getSupplement()
String
getTTCName()
Returns the TrueType Collection Name.
Map
getUsedGlyphs()
Returns a Map of used Glyphs.
int
getWidth(int i, int size)
int[]
getWidths()
boolean
hasChar(char c)
boolean
isEmbeddable()
char
mapChar(char c)
void
setBFEntries(BFEntry[] bfentries)
Sets the bfentries.
void
setCIDType(CIDFontType cidType)
Sets the CIDType.
void
setDefaultWidth(int defaultWidth)
Sets the defaultWidth.
void
setTTCName(String ttcName)
Sets the the TrueType Collection Name.
void
setWidthArray(int[] wds)
Sets the width array.

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

getCIDType, getCharsUsed, getCidBaseFont, getDefaultWidth, getOrdering, getRegistry, getSupplement, isMultiByte

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

getAscender, getAscender, getCapHeight, getCapHeight, getDescender, getDescender, getEmbedFileName, getEmbedFileSource, getEmbedResourceName, getFirstChar, getFlags, getFontBBox, getFontName, getFontSubName, getFontType, getItalicAngle, getKerningInfo, getLastChar, getMissingWidth, getStemV, getStrippedFontName, getXHeight, hasKerningInfo, isKerningEnabled, putKerningEntry, setAscender, setCapHeight, setDescender, setEmbedFileName, setEmbedResourceName, setFirstChar, setFlags, setFontBBox, setFontName, setFontSubFamilyName, setFontType, setItalicAngle, setKerningEnabled, setLastChar, setMissingWidth, setResolver, setStemV, setXHeight

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

getEncoding, getMaxAscent, hasChar, isMultiByte, mapChar

Field Details

INVALID_UNICODE_CHAR

public static final char INVALID_UNICODE_CHAR
The invalid Unicode character, suitable as a return value in methods that need to return an invalid character.
Field Value:
'\uffff'

Constructor Details

MultiByteFont

public MultiByteFont()
Default constructor

Method Details

getCIDType

public CIDFontType getCIDType()
Overrides:
getCIDType in interface CIDFont

getCharsUsed

public char[] getCharsUsed()
Overrides:
getCharsUsed in interface CIDFont

getCidBaseFont

public String getCidBaseFont()
Overrides:
getCidBaseFont in interface CIDFont

getDefaultWidth

public int getDefaultWidth()
Overrides:
getDefaultWidth in interface CIDFont

getEncoding

public String getEncoding()
Overrides:
getEncoding in interface Typeface

getFontName

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

getOrdering

public String getOrdering()
Overrides:
getOrdering in interface CIDFont

getRegistry

public String getRegistry()
Overrides:
getRegistry in interface CIDFont

getSupplement

public int getSupplement()
Overrides:
getSupplement in interface CIDFont

getTTCName

public String getTTCName()
Returns the TrueType Collection Name.
Returns:
the TrueType Collection Name

getUsedGlyphs

public Map getUsedGlyphs()
Returns a Map of used Glyphs.
Returns:
Map Map of used Glyphs

getWidth

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

getWidths

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

hasChar

public boolean hasChar(char c)
Overrides:
hasChar in interface Typeface

isEmbeddable

public boolean isEmbeddable()
Specified by:
isEmbeddable in interface FontDescriptor

mapChar

public char mapChar(char c)
Overrides:
mapChar in interface Typeface

setBFEntries

public void setBFEntries(BFEntry[] bfentries)
Sets the bfentries.
Parameters:
bfentries - The bfentries to set

setCIDType

public void setCIDType(CIDFontType cidType)
Sets the CIDType.
Parameters:
cidType - The cidType to set

setDefaultWidth

public void setDefaultWidth(int defaultWidth)
Sets the defaultWidth.
Parameters:
defaultWidth - The defaultWidth to set

setTTCName

public void setTTCName(String ttcName)
Sets the the TrueType Collection Name.
Parameters:
ttcName - the TrueType Collection Name

setWidthArray

public void setWidthArray(int[] wds)
Sets the width array.
Parameters:
wds - array of widths.

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