org.freedesktop.cairo

Class Glyph

public class Glyph extends CairoObject

A Glyph holds information about a single glyph when drawing or measuring text. A font is (in simple terms) a collection of shapes used to draw text. A glyph is one of these shapes. There can be multiple glyphs for a single character (alternates to be used in different contexts, for example), or a glyph can be a ligature of multiple characters. Cairo doesn't expose any way of converting input text into glyphs, so in order to use the Cairo interfaces that take arrays of glyphs, you must directly access the appropriate underlying font system.
Constructor Summary
Glyph()
Glyph(long index, double x, double y)
Method Summary
protected voidfinalize()
longgetIndex()
PointgetPoint()
doublegetX()
doublegetY()
voidsetIndex(long index)
voidsetX(double x)
voidsetY(double y)

Constructor Detail

Glyph

public Glyph()

Glyph

public Glyph(long index, double x, double y)

Method Detail

finalize

protected void finalize()

getIndex

public long getIndex()

getPoint

public Point getPoint()

getX

public double getX()

getY

public double getY()

setIndex

public void setIndex(long index)

setX

public void setX(double x)

setY

public void setY(double y)