org.apache.fop.fonts

Class CIDFont

Implemented Interfaces:
FontDescriptor, FontMetrics, MutableFont
Known Direct Subclasses:
MultiByteFont

public abstract class CIDFont
extends CustomFont

Abstract base class for CID fonts.

Field Summary

Map
usedCharsIndex
usedCharsIndex contains new glyph, original char
Map
usedGlyphs
usedGlyphs contains orginal, new glyph index
int
usedGlyphsCount
Map
usedGlyphsIndex
usedGlyphsIndex contains new glyph, original index
int[]
width

Method Summary

abstract CIDFontType
getCIDType()
Returns the type of the CID font.
abstract char[]
getCharsUsed()
Returns a char array containing all Unicode characters that have been accessed.
int
getDefaultWidth()
Returns the default width for this font.
abstract String
getOrdering()
Returns a font name for use within a registry.
abstract String
getRegistry()
Returns the name of the issuer of the font.
abstract int
getSupplement()
Returns the supplement number of the character collection.
boolean
isMultiByte()

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

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

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

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

Field Details

usedCharsIndex

public Map usedCharsIndex
usedCharsIndex contains new glyph, original char

usedGlyphs

public Map usedGlyphs
usedGlyphs contains orginal, new glyph index

usedGlyphsCount

public int usedGlyphsCount

usedGlyphsIndex

public Map usedGlyphsIndex
usedGlyphsIndex contains new glyph, original index

width

public int[] width

Method Details

getCIDType

public abstract CIDFontType getCIDType()
Returns the type of the CID font.
Returns:
the type of the CID font

getCharsUsed

public abstract char[] getCharsUsed()
Returns a char array containing all Unicode characters that have been accessed.
Returns:
a char array with all used Unicode characters

getDefaultWidth

public int getDefaultWidth()
Returns the default width for this font.
Returns:
the default width

getOrdering

public abstract String getOrdering()
Returns a font name for use within a registry.
Returns:
a String that uniquely names a character collection issued by a specific registry - for example, Japan1.

getRegistry

public abstract String getRegistry()
Returns the name of the issuer of the font.
Returns:
a String identifying an issuer of character collections - for example, Adobe

getSupplement

public abstract int getSupplement()
Returns the supplement number of the character collection.
Returns:
the supplement number

isMultiByte

public boolean isMultiByte()
Overrides:
isMultiByte in interface Typeface

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