cairo-Text {RGtk2}R Documentation

Text

Description

Rendering text and sets of glyphs

Methods and Functions

cairoSelectFontFace(cr, family, slant, weight)
cairoSetFontSize(cr, size)
cairoSetFontMatrix(cr, matrix)
cairoGetFontMatrix(cr, matrix)
cairoSetFontOptions(cr, options)
cairoGetFontOptions(cr)
cairoSetFontFace(cr, font.face)
cairoGetFontFace(cr)
cairoSetScaledFont(cr, scaled.font)
cairoGetScaledFont(cr)
cairoShowText(cr, utf8)
cairoShowGlyphs(cr, glyphs, num.glyphs)
cairoFontExtents(cr)
cairoTextExtents(cr, utf8)
cairoGlyphExtents(cr, glyphs)

Structures

CairoGlyph
The CairoGlyph structure 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.

Note that the offsets given by x and y are not cumulative. When drawing or measuring text, each glyph is individually positioned with respect to the overall origin CairoGlyph is a transparent-type.

index
[numeric] the offset in the X direction between the origin used for drawing or measuring the string and the origin of this glyph.
x
[numeric] the offset in the Y direction between the origin used for drawing or measuring the string and the origin of this glyph.
y
[numeric]

Enums and Flags

CairoFontSlant
Specifies variants of a font face based on their slant.

normal
Upright font style
italic
Italic font style
oblique
Oblique font style

CairoFontWeight
Specifies variants of a font face based on their weight.

normal
Normal font weight
bold
Bold font weight

Author(s)

Derived by RGtkGen from GTK+ documentation

References

http://www.cairographics.org/manual/cairo-Text.html


[Package RGtk2 version 2.12.5-3 Index]