Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
cairo_glyph_t Struct Reference

#include <cairo.h>

Data Fields

unsigned long index
 
double x
 
double y
 

Detailed Description

cairo_glyph_t: @index: glyph index in the font. The exact interpretation of the glyph index depends on the font technology being used. @x: the offset in the X direction between the origin used for drawing or measuring the string and the origin of this glyph. @y: the offset in the Y direction between the origin used for drawing or measuring the string and the origin of this glyph.

The cairo_glyph_t 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 <firstterm>ligature</firstterm> 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

Since: 1.0

Definition at line 1162 of file cairo.h.

Field Documentation

◆ index

unsigned long cairo_glyph_t::index

Definition at line 1163 of file cairo.h.

◆ x

double cairo_glyph_t::x

Definition at line 1164 of file cairo.h.

◆ y

double cairo_glyph_t::y

Definition at line 1165 of file cairo.h.


The documentation for this struct was generated from the following file: