Top Description Fields Constructors Methods
jogamp.graph.font.typecast.ot

public final Class OTGlyph

extends Object
Class Inheritance
Imports
jogamp.graph.font.typecast.ot.table.Charstring, .CharstringType2, .GlyfDescript, .GlyphDescription, jogamp.graph.font.typecast.t2.T2Interpreter, com.jogamp.opengl.math.geom.AABBox

An individual glyph within a font.
Author
David Schweinsberg, Sven Gothel
Version
$Id: Glyph.java,v 1.3 2007-02-21 12:23:54 davidsch Exp $

Field Summary

Modifier and TypeField and Description
private final int
pack-priv AABBox
private final short
private Point[]

Constructor Summary

AccessConstructor and Description
public
OTGlyph(final GlyphDescription
The Charstring describing the glyph.
gd
,
final short
The Left Side Bearing.
lsb
,
final int
The advance width.
advance
)

Construct a Glyph from a TrueType outline described by a GlyphDescription.

public
OTGlyph(final Charstring
The Charstring describing the glyph.
cs
,
final short
The Left Side Bearing.
lsb
,
final int
The advance width.
advance
)

Construct a Glyph from a PostScript outline described by a Charstring.

Method Summary

Modifier and TypeMethod and Description
public final void
private final void
describe(final GlyphDescription gd)

Set the points of a glyph from the GlyphDescription

public final int
public final AABBox
public final short
public final Point
getPoint(final int i)

public final int
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

_advanceWidthback to summary
private final int _advanceWidth
_bboxback to summary
pack-priv AABBox _bbox
_leftSideBearingback to summary
private final short _leftSideBearing
_pointsback to summary
private Point[] _points

Constructor Detail

OTGlyphback to summary
public OTGlyph(final GlyphDescription gd, final short lsb, final int advance)

Construct a Glyph from a TrueType outline described by a GlyphDescription.

Parameters
gd:GlyphDescription

The Charstring describing the glyph.

lsb:short

The Left Side Bearing.

advance:int

The advance width.

OTGlyphback to summary
public OTGlyph(final Charstring cs, final short lsb, final int advance)

Construct a Glyph from a PostScript outline described by a Charstring.

Parameters
cs:Charstring

The Charstring describing the glyph.

lsb:short

The Left Side Bearing.

advance:int

The advance width.

Method Detail

clearPointDataback to summary
public final void clearPointData()
describeback to summary
private final void describe(final GlyphDescription gd)

Set the points of a glyph from the GlyphDescription

getAdvanceWidthback to summary
public final int getAdvanceWidth()
getBBoxback to summary
public final AABBox getBBox()
getLeftSideBearingback to summary
public final short getLeftSideBearing()
getPointback to summary
public final Point getPoint(final int i)
getPointCountback to summary
public final int getPointCount()