com.openpcl.pclrenderimage.softfont
Class PriFontHeader

java.lang.Object
  extended by com.openpcl.pclrenderimage.softfont.PriFontHeader
Direct Known Subclasses:
PriBitmapFontHeader

public abstract class PriFontHeader
extends Object

During soft creation a font header is specified. There are five different header types.

This is a base class for all font header formats. See PCL Technical Reference Soft Font Creation.

Version:
1.0
Author:
BrainCoders.com

Field Summary
protected  int baselinePosition
           
protected  int capHeight
           
protected  int cellHeight
           
protected  int cellWidth
           
protected  int firstCode
           
protected  int fontDescriptorSize
           
protected  String fontName
           
protected  int fontNumber
           
protected  int fontType
           
static int FT_BOUND_0_255_PRINTABLE
           
static int FT_BOUND_32_127_AND_160_255_PRINTABLE
           
static int FT_BOUND_32_127_PRINTABLE
           
static int FT_UNBOUND_MSL_NUMBERS
           
static int FT_UNBOUND_UNICODE_NUMBERS
           
protected  int headerFormat
           
protected  int height
           
protected  int heightExtended
           
static int HF_INTELLIFONT_BOUND_SCALABLE
           
static int HF_INTELLIFONT_UNBOUND_SCALABLE
           
static int HF_PCL_BITMAP
           
static int HF_RESOLUTION_SPECIFIED_BITMAP
           
static int HF_TRUETYPE_SCALABLE
           
protected  int lastCode
           
protected  int orientation
           
protected  int pitch
           
protected  int pitchExtended
           
protected  int placement
           
protected  int quality
           
protected  int serifStyle
           
protected  boolean spacing
           
protected  int strokeWeight
           
protected  int styleLSB
           
protected  int styleMSB
           
protected  int symbolset
           
protected  int textHeight
           
protected  int textWidth
           
protected  int typefaceLSB
           
protected  int typefaceMSB
           
protected  int underlinePosition
           
protected  int underlineTickness
           
protected  int widthType
           
protected  int xHeight
           
 
Constructor Summary
PriFontHeader()
           
 
Method Summary
 void dump()
           
 int getBaselinePosition()
           
 int getCapHeight()
           
 int getCellHeight()
           
 int getCellWidth()
           
 int getFirstCode()
           
 int getFontDescriptorSize()
           
 String getFontName()
           
 int getFontNumber()
           
 int getFontType()
           
 int getHeaderFormat()
           
 int getHeight()
           
 int getHeightExtended()
           
 int getLastCode()
           
 int getOrientation()
           
 int getPitch()
           
 int getPitchExtended()
           
 int getPlacement()
           
 int getQuality()
           
 int getSerifStyle()
           
 boolean getSpacing()
           
 int getStrokeWeight()
           
 int getStyleLSB()
           
 int getStyleMSB()
           
 int getSymbolset()
           
 int getTextHeight()
           
 int getTextWidth()
           
 int getTypefaceLSB()
           
 int getTypefaceMSB()
           
 int getUnderlinePosition()
           
 int getUnderlineTickness()
           
 int getWidthType()
           
 int getXHeight()
           
protected  void init(DataInputStream headerInput)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HF_PCL_BITMAP

public static final int HF_PCL_BITMAP
See Also:
Constant Field Values
To do:
we should move this constants to different place

HF_INTELLIFONT_BOUND_SCALABLE

public static final int HF_INTELLIFONT_BOUND_SCALABLE
See Also:
Constant Field Values

HF_INTELLIFONT_UNBOUND_SCALABLE

public static final int HF_INTELLIFONT_UNBOUND_SCALABLE
See Also:
Constant Field Values

HF_TRUETYPE_SCALABLE

public static final int HF_TRUETYPE_SCALABLE
See Also:
Constant Field Values

HF_RESOLUTION_SPECIFIED_BITMAP

public static final int HF_RESOLUTION_SPECIFIED_BITMAP
See Also:
Constant Field Values

FT_BOUND_32_127_PRINTABLE

public static final int FT_BOUND_32_127_PRINTABLE
See Also:
Constant Field Values

FT_BOUND_32_127_AND_160_255_PRINTABLE

public static final int FT_BOUND_32_127_AND_160_255_PRINTABLE
See Also:
Constant Field Values

FT_BOUND_0_255_PRINTABLE

public static final int FT_BOUND_0_255_PRINTABLE
See Also:
Constant Field Values

FT_UNBOUND_MSL_NUMBERS

public static final int FT_UNBOUND_MSL_NUMBERS
See Also:
Constant Field Values

FT_UNBOUND_UNICODE_NUMBERS

public static final int FT_UNBOUND_UNICODE_NUMBERS
See Also:
Constant Field Values

fontDescriptorSize

protected int fontDescriptorSize

headerFormat

protected int headerFormat

fontType

protected int fontType

styleMSB

protected int styleMSB

baselinePosition

protected int baselinePosition

cellWidth

protected int cellWidth

cellHeight

protected int cellHeight

orientation

protected int orientation

spacing

protected boolean spacing

symbolset

protected int symbolset

pitch

protected int pitch

height

protected int height

xHeight

protected int xHeight

widthType

protected int widthType

styleLSB

protected int styleLSB

strokeWeight

protected int strokeWeight

typefaceLSB

protected int typefaceLSB

typefaceMSB

protected int typefaceMSB

serifStyle

protected int serifStyle

quality

protected int quality

placement

protected int placement

underlinePosition

protected int underlinePosition

underlineTickness

protected int underlineTickness

textHeight

protected int textHeight

textWidth

protected int textWidth

firstCode

protected int firstCode

lastCode

protected int lastCode

pitchExtended

protected int pitchExtended

heightExtended

protected int heightExtended

capHeight

protected int capHeight

fontNumber

protected int fontNumber

fontName

protected String fontName
Constructor Detail

PriFontHeader

public PriFontHeader()
Method Detail

init

protected void init(DataInputStream headerInput)
             throws IOException
Throws:
IOException

dump

public void dump()

getBaselinePosition

public int getBaselinePosition()

getCapHeight

public int getCapHeight()

getCellHeight

public int getCellHeight()

getCellWidth

public int getCellWidth()

getFirstCode

public int getFirstCode()

getFontName

public String getFontName()

getFontType

public int getFontType()

getFontNumber

public int getFontNumber()

getHeaderFormat

public int getHeaderFormat()

getHeight

public int getHeight()

getHeightExtended

public int getHeightExtended()

getLastCode

public int getLastCode()

getOrientation

public int getOrientation()

getPitch

public int getPitch()

getPitchExtended

public int getPitchExtended()

getPlacement

public int getPlacement()

getQuality

public int getQuality()

getSerifStyle

public int getSerifStyle()

getTextWidth

public int getTextWidth()

getSpacing

public boolean getSpacing()

getStrokeWeight

public int getStrokeWeight()

getStyleLSB

public int getStyleLSB()

getStyleMSB

public int getStyleMSB()

getSymbolset

public int getSymbolset()

getTextHeight

public int getTextHeight()

getTypefaceLSB

public int getTypefaceLSB()

getTypefaceMSB

public int getTypefaceMSB()

getUnderlinePosition

public int getUnderlinePosition()

getUnderlineTickness

public int getUnderlineTickness()

getWidthType

public int getWidthType()

getXHeight

public int getXHeight()

getFontDescriptorSize

public int getFontDescriptorSize()


OpenPCL http://www.openpcl.com