org.freedesktop.cairo
public class ScaledFont extends CairoObject
Constructor Summary | |
---|---|
ScaledFont(FontFace fontFace, Matrix matrix, Matrix ctm, FontOptions options)
Create a new ScaledFont
|
Method Summary | |
---|---|
protected void | finalize() |
FontExtents | getFontExtents() |
TextExtents | getGlyphExtents(Glyph[] glyhps)
Gets the overall metrics for an array of glyphs. |
Parameters: fontFace The FontFace matrix 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.
Parameters: glyhps an array of glyph IDs with X and Y offsets
Returns: a TextExtent which contains the extents