org.extex.font.format.xtf.tables
Class XtfGlyph

java.lang.Object
  extended by org.extex.font.format.xtf.tables.XtfGlyph

public class XtfGlyph
extends java.lang.Object

An individual glyph. (see Chap01)

Version:
$Revision: 6604 $
Author:
Michael Niedermair

Nested Class Summary
 class XtfGlyph.Point
          Points.
 
Constructor Summary
XtfGlyph(TtfTableGLYF.Descript gd, short lsb, int advance)
          Create a new object
 
Method Summary
 int getAdvanceWidth()
          Returns the advance width.
 short getLeftSideBearing()
          Returns the left side bearing.
 XtfGlyph.Point getPoint(int i)
          Returns the point.
 int getPointCount()
          Returns the count of points.
 void reset()
          Resets the glyph to the TrueType table settings
 void scale(int factor)
          Scale
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XtfGlyph

public XtfGlyph(TtfTableGLYF.Descript gd,
                short lsb,
                int advance)
Create a new object

Parameters:
gd - glyph description
lsb - lsb
advance - advance
Method Detail

getAdvanceWidth

public int getAdvanceWidth()
Returns the advance width.

Returns:
Returns the advance width.

getLeftSideBearing

public short getLeftSideBearing()
Returns the left side bearing.

Returns:
Returns the left side bearing.

getPoint

public XtfGlyph.Point getPoint(int i)
Returns the point.

Parameters:
i - the index
Returns:
Returns the point.

getPointCount

public int getPointCount()
Returns the count of points.

Returns:
Returns the count of points.

reset

public void reset()
Resets the glyph to the TrueType table settings


scale

public void scale(int factor)
Scale

Parameters:
factor - a 16.16 fixed value