fop 0.90alpha1

org.apache.fop.fonts
Class MultiByteFont

java.lang.Object
  |
  +--org.apache.fop.fonts.Typeface
        |
        +--org.apache.fop.fonts.CustomFont
              |
              +--org.apache.fop.fonts.CIDFont
                    |
                    +--org.apache.fop.fonts.MultiByteFont
All Implemented Interfaces:
FontDescriptor, FontMetrics, MutableFont

public class MultiByteFont
extends CIDFont

Generic MultiByte (CID) font


Fields inherited from class org.apache.fop.fonts.CIDFont
usedGlyphs, usedGlyphsCount, usedGlyphsIndex, width
 
Constructor Summary
MultiByteFont()
          Default constructor
 
Method Summary
 java.lang.String getCidBaseFont()
          Returns the name of the base font.
 CIDFontType getCIDType()
          Returns the type of the CID font.
 int getDefaultWidth()
          Returns the default width for this font.
 java.lang.String getEncoding()
          Get the encoding of the font.
 java.lang.String getFontName()
          Returns the font name.
 java.lang.String getOrdering()
          Returns a font name for use within a registry.
 java.lang.String getRegistry()
          Returns the name of the issuer of the font.
 int getSupplement()
          Returns the supplement number of the character collection.
 java.lang.String getTTCName()
          Returns the TrueType Collection Name.
 java.util.Map getUsedGlyphs()
          Returns a Map of used Glyphs.
 int getWidth(int i, int size)
          Return the width (in 1/1000ths of point size) of the character at code point i.
 int[] getWidths()
          Return the array of widths.
 boolean hasChar(char c)
          Determines whether this font contains a particular character/glyph.
 boolean isEmbeddable()
          Indicates if this font may be embedded.
 char mapChar(char c)
          Map a Unicode character to a code point in the font.
 void setBFEntries(BFEntry[] bfentries)
          Sets the bfentries.
 void setCIDType(CIDFontType cidType)
          Sets the CIDType.
 void setDefaultWidth(int defaultWidth)
          Sets the defaultWidth.
 void setTTCName(java.lang.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
isMultiByte
 
Methods inherited from class org.apache.fop.fonts.CustomFont
getAscender, getAscender, getCapHeight, getCapHeight, getDescender, getDescender, getEmbedFileName, getEmbedResourceName, getFirstChar, getFlags, getFontBBox, getFontType, getItalicAngle, getKerningInfo, getLastChar, getMissingWidth, getStemV, getXHeight, hasKerningInfo, isKerningEnabled, putKerningEntry, setAscender, setCapHeight, setDescender, setEmbedFileName, setEmbedResourceName, setFirstChar, setFlags, setFontBBox, setFontName, setFontType, setItalicAngle, setKerningEnabled, setLastChar, setMissingWidth, setStemV, setXHeight
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiByteFont

public MultiByteFont()
Default constructor
Method Detail

getDefaultWidth

public int getDefaultWidth()
Description copied from class: CIDFont
Returns the default width for this font.
Overrides:
getDefaultWidth in class CIDFont
See Also:
CIDFont.getDefaultWidth()

getRegistry

public java.lang.String getRegistry()
Description copied from class: CIDFont
Returns the name of the issuer of the font.
Overrides:
getRegistry in class CIDFont
See Also:
CIDFont.getRegistry()

getOrdering

public java.lang.String getOrdering()
Description copied from class: CIDFont
Returns a font name for use within a registry.
Overrides:
getOrdering in class CIDFont
See Also:
CIDFont.getOrdering()

getSupplement

public int getSupplement()
Description copied from class: CIDFont
Returns the supplement number of the character collection.
Overrides:
getSupplement in class CIDFont
See Also:
CIDFont.getSupplement()

getCIDType

public CIDFontType getCIDType()
Description copied from class: CIDFont
Returns the type of the CID font.
Overrides:
getCIDType in class CIDFont
See Also:
CIDFont.getCIDType()

setCIDType

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

getCidBaseFont

public java.lang.String getCidBaseFont()
Description copied from class: CIDFont
Returns the name of the base font.
Overrides:
getCidBaseFont in class CIDFont
See Also:
CIDFont.getCidBaseFont()

isEmbeddable

public boolean isEmbeddable()
Description copied from interface: FontDescriptor
Indicates if this font may be embedded.
See Also:
FontDescriptor.isEmbeddable()

getEncoding

public java.lang.String getEncoding()
Description copied from class: Typeface
Get the encoding of the font.
Overrides:
getEncoding in class Typeface
See Also:
Typeface.getEncoding()

getFontName

public java.lang.String getFontName()
Description copied from interface: FontMetrics
Returns the font name.
Overrides:
getFontName in class CustomFont
See Also:
FontMetrics.getFontName()

getWidth

public int getWidth(int i,
                    int size)
Description copied from interface: FontMetrics
Return the width (in 1/1000ths of point size) of the character at code point i.
See Also:
FontMetrics.getWidth(int, int)

getWidths

public int[] getWidths()
Description copied from interface: FontMetrics
Return the array of widths.

This is used to get an array for inserting in an output format. It should not be used for lookup.

See Also:
FontMetrics.getWidths()

mapChar

public char mapChar(char c)
Description copied from class: Typeface
Map a Unicode character to a code point in the font.
Overrides:
mapChar in class Typeface
See Also:
Typeface.mapChar(char)

hasChar

public boolean hasChar(char c)
Description copied from class: Typeface
Determines whether this font contains a particular character/glyph.
Overrides:
hasChar in class Typeface
See Also:
Typeface.hasChar(char)

setBFEntries

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

setDefaultWidth

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

getTTCName

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

setTTCName

public void setTTCName(java.lang.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.

getUsedGlyphs

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

fop 0.90alpha1

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