org.apache.fop.render.pdf.fonts
Class MultiByteFont

java.lang.Object
  extended byorg.apache.fop.render.pdf.Font
      extended byorg.apache.fop.render.pdf.CIDFont
          extended byorg.apache.fop.render.pdf.fonts.MultiByteFont
All Implemented Interfaces:
FontDescriptor, FontMetric

public class MultiByteFont
extends CIDFont
implements FontDescriptor

Generic MultiByte (CID) font


Field Summary
 int ascender
           
 BFEntry[] bfentries
           
 int capHeight
           
 byte cidType
           
 int defaultWidth
           
 int descender
           
 PDFTTFStream embeddedFont
           
 URL embedFileName
           
 String embedResourceName
           
 String encoding
           
 int flags
           
 int[] fontBBox
           
 String fontName
           
 int italicAngle
           
 Map kerning
           
 int missingWidth
           
 int stemV
           
 String ttcName
           
 boolean useKerning
           
 PDFWArray warray
           
 int[] width
           
 int xHeight
           
 
Constructor Summary
MultiByteFont()
           
 
Method Summary
 String encoding()
          get the encoding of the font
 String fontName()
          get the base font name
 int getAscender()
           
 int getAscender(int size)
           
 int getAvgWidth()
           
 int getCapHeight()
           
 int getCapHeight(int size)
           
 String getCharEncoding()
           
 String getCidBaseFont()
           
 byte getCidType()
           
 int getDefaultWidth()
           
 int getDescender()
           
 int getDescender(int size)
           
 int getFirstChar()
           
 int getFlags()
           
 int[] getFontBBox()
           
 PDFStream getFontFile(int i)
           
 int getItalicAngle()
           
 Map getKerningInfo()
           
 String getLang()
           
 int getLastChar()
           
 int getleading()
           
 int getMaxWidth()
           
 int getMinWidth()
           
 int getMissingWidth()
           
 String getOrdering()
           
 String getPanose()
           
 String getRegistry()
           
 int getStemH()
           
 int getStemV()
           
 byte getSubType()
          get the subtype of the font, default is TYPE1
 int getSupplement()
           
 PDFWArray getWidths()
           
 int[] getWidths(int size)
           
 int getXHeight(int size)
           
 boolean hasKerningInfo()
           
 boolean isEmbeddable()
           
 char mapChar(char c)
          map a Unicode character to a code point in the font
 Integer reMap(Integer i)
           
 int width(int i, int size)
          return width (in 1/1000ths of point size) of character at code point i
 
Methods inherited from class org.apache.fop.render.pdf.CIDFont
getCMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fontName

public String fontName

ttcName

public String ttcName

encoding

public String encoding

capHeight

public int capHeight

xHeight

public int xHeight

ascender

public int ascender

descender

public int descender

fontBBox

public int[] fontBBox

embedFileName

public URL embedFileName

embedResourceName

public String embedResourceName

embeddedFont

public PDFTTFStream embeddedFont

flags

public int flags

stemV

public int stemV

italicAngle

public int italicAngle

missingWidth

public int missingWidth

defaultWidth

public int defaultWidth

cidType

public byte cidType

kerning

public Map kerning

useKerning

public boolean useKerning

warray

public PDFWArray warray

width

public int[] width

bfentries

public BFEntry[] bfentries
Constructor Detail

MultiByteFont

public MultiByteFont()
Method Detail

hasKerningInfo

public final boolean hasKerningInfo()
Specified by:
hasKerningInfo in interface FontDescriptor

getKerningInfo

public final Map getKerningInfo()
Specified by:
getKerningInfo in interface FontDescriptor

getSubType

public byte getSubType()
Description copied from class: Font
get the subtype of the font, default is TYPE1

Specified by:
getSubType in interface FontDescriptor
Overrides:
getSubType in class Font

getLang

public String getLang()

getPanose

public String getPanose()

getAvgWidth

public int getAvgWidth()

getMinWidth

public int getMinWidth()

getMaxWidth

public int getMaxWidth()

getleading

public int getleading()

getStemH

public int getStemH()

getMissingWidth

public int getMissingWidth()

getDefaultWidth

public int getDefaultWidth()
Overrides:
getDefaultWidth in class CIDFont

getRegistry

public String getRegistry()
Specified by:
getRegistry in class CIDFont

getOrdering

public String getOrdering()
Specified by:
getOrdering in class CIDFont

getSupplement

public int getSupplement()
Specified by:
getSupplement in class CIDFont

getCidType

public byte getCidType()
Specified by:
getCidType in class CIDFont

getCidBaseFont

public String getCidBaseFont()
Specified by:
getCidBaseFont in class CIDFont

getCharEncoding

public String getCharEncoding()
Specified by:
getCharEncoding in class CIDFont

getWidths

public PDFWArray getWidths()
Overrides:
getWidths in class CIDFont

isEmbeddable

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

getFontFile

public PDFStream getFontFile(int i)
Specified by:
getFontFile in interface FontDescriptor

encoding

public String encoding()
Description copied from class: Font
get the encoding of the font

Specified by:
encoding in class Font

fontName

public String fontName()
Description copied from class: Font
get the base font name

Specified by:
fontName in interface FontDescriptor
Specified by:
fontName in class Font

getAscender

public int getAscender()
Specified by:
getAscender in interface FontDescriptor

getDescender

public int getDescender()
Specified by:
getDescender in interface FontDescriptor

getCapHeight

public int getCapHeight()
Specified by:
getCapHeight in interface FontDescriptor

getAscender

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

getCapHeight

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

getDescender

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

getXHeight

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

getFlags

public int getFlags()
Specified by:
getFlags in interface FontDescriptor

getFontBBox

public int[] getFontBBox()
Specified by:
getFontBBox in interface FontDescriptor

getItalicAngle

public int getItalicAngle()
Specified by:
getItalicAngle in interface FontDescriptor

getStemV

public int getStemV()
Specified by:
getStemV in interface FontDescriptor

getFirstChar

public int getFirstChar()
Specified by:
getFirstChar in interface FontMetric

getLastChar

public int getLastChar()
Specified by:
getLastChar in interface FontMetric

width

public int width(int i,
                 int size)
Description copied from interface: FontMetric
return width (in 1/1000ths of point size) of character at code point i

Specified by:
width in interface FontMetric

getWidths

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

reMap

public Integer reMap(Integer i)

mapChar

public char mapChar(char c)
Description copied from class: Font
map a Unicode character to a code point in the font

Specified by:
mapChar in class Font


Copyright ? 1999-2003 Apache Software Foundation. All Rights Reserved.