org.apache.batik.svggen.font

Class Glyph

public class Glyph extends Object

An individual glyph within a font.
Field Summary
protected intadvanceWidth
protected shortleftSideBearing
Constructor Summary
Glyph(GlyphDescription gd, short lsb, int advance)
Method Summary
intgetAdvanceWidth()
shortgetLeftSideBearing()
PointgetPoint(int i)
intgetPointCount()
voidreset()
Resets the glyph to the TrueType table settings
voidscale(int factor)

Field Detail

advanceWidth

protected int advanceWidth

leftSideBearing

protected short leftSideBearing

Constructor Detail

Glyph

public Glyph(GlyphDescription gd, short lsb, int advance)

Method Detail

getAdvanceWidth

public int getAdvanceWidth()

getLeftSideBearing

public short getLeftSideBearing()

getPoint

public Point getPoint(int i)

getPointCount

public int getPointCount()

reset

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

scale

public void scale(int factor)

Parameters: factor a 16.16 fixed value

Copyright B) 2007 Apache Software Foundation. All Rights Reserved.