Next: Using glyphs, Previous: The picture object, Up: RENDER - A new rendering system for X11 [Contents][Index]
A glyph in XRENDER is an alpha mask and an associated orgin, advancement and numeric id. The application refers to them by the numeric id.
Glyphs are stored in a glyph-set. The client is responsible for making sure the glyphs it uses are stored in the glyph-set, or there will be a Glyph-error.
A picture-format for the alpha masks that this font will use.
An optional glyph-set object to initialize with a server side glyphset resource.
Creates an initially empty glyph-set for the client to use. Format must be a Direct format. When it contains RGB values, the glyphs are composited using component-alpha True, otherwise they are composited using component-alpha False.
An existing glyph-set
An optional glyph-set, just like in render-create-glyph-set
Creates a new id refering to the existing-glyph-set. The glyph-set itself will not be freed until all ids has been removed.
A glyphset resource to free
Removes an id to a glyph-set. When all ids have been removed the glyph-set itself is removed.
A glyph-set
card32
int16
int16
int16
int16
An array of card8 bytes.
Associates id with the given description of a glyph. An existing glyph with the same id is replaced.
At the time of writing, only 8bit alpha masks are supported. Experimentation with glyph-sets in other pict-formats needed.
glyph-set
picture
int16
int16
int16
int16
int16
int16
card16
card16
This request add a glyph to glyph-set by copying it from the x,y location in the picture.
Existing glyphs with the same names are replaced. The source picture may be in a different picture-format than glyph-set, in which case the images are converted to the glyph-set’s format.
A glyph-set
sequence of card32
This request removes glyphs from glyph-set. Each glyph must exist in glyph-set (else a Match error results).
Next: Using glyphs, Previous: The picture object, Up: RENDER - A new rendering system for X11 [Contents][Index]