Struct

PangoGlyphVisAttr

Description [src]

struct PangoGlyphVisAttr {
  guint is_cluster_start : 1;
  guint is_color : 1;
  guint unsafe_to_break : 1;
  guint unsafe_to_concat : 1;
}

A PangoGlyphVisAttr structure communicates information between the shaping and rendering phases.

Currently, it contains cluster start, color, and shaping-boundary information. More attributes may be added in the future.

Clusters are stored in visual order, within the cluster, glyphs are always ordered in logical order, since visual order is meaningless; that is, in Arabic text, accent glyphs follow the glyphs for the base character.

Structure members
is_cluster_start: guint

Set for the first logical glyph in each cluster.

is_color: guint

Set if the the font will render this glyph with color. Since 1.50.

unsafe_to_break: guint

Set when existing glyphs cannot safely be split at the start of this glyph’s cluster; callers should reshape the text on both sides of the split. Since 1.60.

unsafe_to_concat: guint

Set when existing glyphs cannot safely be joined at this cluster boundary; callers should shape the combined text again instead of concatenating the existing glyph strings. Since 1.60.