Name
cairo.Glyphs -- create new glyphs array
Synopsis
handle = cairo.Glyphs(n)
Function
Allocates a new glyphs array that has enough room for storing n glyphs. You can then set and get the individual glyph at a specific index by using the cglyphs:Get() and cglyphs:Set() functions. By default, all glyph IDs and offsets in the object will be set to 0.

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.

Inputs
none

Results
handle
a newly allocated Cairo glyphs array

Show TOC