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

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

public class SingleByteFont
extends Font
implements FontDescriptor

Generic SingleByte font


Field Summary
 int ascender
           
 int capHeight
           
 int descender
           
 PDFStream embeddedFont
           
 java.net.URL embedFileName
           
 java.lang.String embedResourceName
           
 java.lang.String encoding
           
 int firstChar
           
 int flags
           
 int[] fontBBox
           
 java.lang.String fontName
           
 int italicAngle
           
 java.util.Map kerning
           
 int lastChar
           
 int missingWidth
           
 int stemV
           
 byte subType
           
 boolean useKerning
           
 int[] width
           
 int xHeight
           
 
Constructor Summary
SingleByteFont()
           
 
Method Summary
 java.lang.String encoding()
          get the encoding of the font
 java.lang.String fontName()
          get the base font name
 int getAscender()
           
 int getAscender(int size)
           
 int getAvgWidth()
           
 int getCapHeight()
           
 int getCapHeight(int size)
           
 java.lang.String getCharEncoding()
           
 int getDescender()
           
 int getDescender(int size)
           
 int getFirstChar()
           
 int getFlags()
           
 int[] getFontBBox()
           
 PDFStream getFontFile(int i)
           
 int getItalicAngle()
           
 java.util.Map getKerningInfo()
           
 int getLastChar()
           
 int getleading()
           
 int getMaxWidth()
           
 int getMinWidth()
           
 int getMissingWidth()
           
 int getStemH()
           
 int getStemV()
           
 byte getSubType()
          get the subtype of the font, default is TYPE1
 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
 int width(int i, int size)
          return width (in 1/1000ths of point size) of character at code point i
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fontName

public java.lang.String fontName

encoding

public java.lang.String encoding

capHeight

public int capHeight

xHeight

public int xHeight

ascender

public int ascender

descender

public int descender

fontBBox

public int[] fontBBox

embedFileName

public java.net.URL embedFileName

embedResourceName

public java.lang.String embedResourceName

embeddedFont

public PDFStream embeddedFont

firstChar

public int firstChar

lastChar

public int lastChar

flags

public int flags

stemV

public int stemV

italicAngle

public int italicAngle

missingWidth

public int missingWidth

kerning

public java.util.Map kerning

useKerning

public boolean useKerning

width

public int[] width

subType

public byte subType
Constructor Detail

SingleByteFont

public SingleByteFont()
Method Detail

hasKerningInfo

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

getKerningInfo

public final java.util.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

getAvgWidth

public int getAvgWidth()

getMinWidth

public int getMinWidth()

getMaxWidth

public int getMaxWidth()

getleading

public int getleading()

getStemH

public int getStemH()

getMissingWidth

public int getMissingWidth()

getCharEncoding

public java.lang.String getCharEncoding()

isEmbeddable

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

getFontFile

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

encoding

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

Specified by:
encoding in class Font

fontName

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

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.