org.freedesktop.cairo
Class ScaledFont
Struct
org.freedesktop.cairo.CairoObject
org.freedesktop.cairo.ScaledFont
public class ScaledFont
extends org.freedesktop.cairo.CairoObject
ScaledFont(FontFace fontFace, Matrix matrix, Matrix ctm, FontOptions options) - Superceeded by java-gnome 4.0; this method or constant
will no doubt exist conceptually, but it may have a different
name or signature in order that the presented API is an
algorithmic mapping of the underlying native libraries.
|
FontExtents | getFontExtents()
|
TextExtents | getGlyphExtents(Glyph[] glyhps) - Superceeded by java-gnome 4.0; this method or constant
will no doubt exist conceptually, but it may have a different
name or signature in order that the presented API is an
algorithmic mapping of the underlying native libraries.
|
ScaledFont
public ScaledFont(FontFace fontFace,
Matrix matrix,
Matrix ctm,
FontOptions options)
Superceeded by java-gnome 4.0; this method or constant
will no doubt exist conceptually, but it may have a different
name or signature in order that the presented API is an
algorithmic mapping of the underlying native libraries.
Create a new ScaledFont
fontFace
- The FontFacematrix
- font space to user space transformation matrix for the font.
In the simplest case of a N point font, this matrix is just a
scale by N, but it can also be used to shear the font or
stretch it unequally along the two axes.ctm
- user to device transformation matrix with which the font will
be used.
getGlyphExtents
public TextExtents getGlyphExtents(Glyph[] glyhps)
Superceeded by java-gnome 4.0; this method or constant
will no doubt exist conceptually, but it may have a different
name or signature in order that the presented API is an
algorithmic mapping of the underlying native libraries.
Gets the overall metrics for an array of glyphs. The X and Y offsets in
glyphs are taken from an origin of 0,0.
glyhps
- an array of glyph IDs with X and Y offsets
- a TextExtent which contains the extents