org.freedesktop.cairo
Class Glyph
java.lang.Object
org.gnu.glib.Struct
org.freedesktop.cairo.Glyph
public class Glyph
- extends org.gnu.glib.Struct
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)
|
Methods inherited from class org.gnu.glib.Struct |
equals, getHandle, getNullHandle, hashCode |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, toString, wait, wait, wait |
Glyph
public Glyph()
Glyph
public Glyph(long index,
double x,
double y)
getIndex
public long getIndex()
setIndex
public void setIndex(long index)
getX
public double getX()
setX
public void setX(double x)
getY
public double getY()
setY
public void setY(double y)
getPoint
public Point getPoint()