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

#include <cairo.h>

Data Fields

int num_bytes
 
int num_glyphs
 

Detailed Description

cairo_text_cluster_t: @num_bytes: the number of bytes of UTF-8 text covered by cluster @num_glyphs: the number of glyphs covered by cluster

The cairo_text_cluster_t structure holds information about a single <firstterm>text cluster</firstterm>. A text cluster is a minimal mapping of some glyphs corresponding to some UTF-8 text.

For a cluster to be valid, both @num_bytes and @num_glyphs should be non-negative, and at least one should be non-zero. Note that clusters with zero glyphs are not as well supported as normal clusters. For example, PDF rendering applications typically ignore those clusters when PDF text is being selected.

See cairo_show_text_glyphs() for how clusters are used in advanced text operations.

Since: 1.8

Definition at line 1194 of file cairo.h.

Field Documentation

◆ num_bytes

int cairo_text_cluster_t::num_bytes

Definition at line 1195 of file cairo.h.

◆ num_glyphs

int cairo_text_cluster_t::num_glyphs

Definition at line 1196 of file cairo.h.


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