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

#include <pango-glyph.h>

Data Fields

PangoGlyphUnit width
 
PangoGlyphUnit x_offset
 
PangoGlyphUnit y_offset
 

Detailed Description

PangoGlyphGeometry: @width: the logical width to use for the the character. @x_offset: horizontal offset from nominal character position. @y_offset: vertical offset from nominal character position.

The PangoGlyphGeometry structure contains width and positioning information for a single glyph.

Note that @width is not guaranteed to be the same as the glyph extents. Kerning and other positioning applied during shaping will affect both the @width and the @x_offset for the glyphs in the glyph string that results from shaping.

The information in this struct is intended for rendering the glyphs, as follows:

  1. Assume the current point is (x, y)
  2. Render the current glyph at (x + x_offset, y + y_offset),
  3. Advance the current point to (x + width, y)
  4. Render the next glyph

Definition at line 78 of file pango-glyph.h.

Field Documentation

◆ width

PangoGlyphUnit _PangoGlyphGeometry::width

Definition at line 80 of file pango-glyph.h.

◆ x_offset

PangoGlyphUnit _PangoGlyphGeometry::x_offset

Definition at line 81 of file pango-glyph.h.

◆ y_offset

PangoGlyphUnit _PangoGlyphGeometry::y_offset

Definition at line 82 of file pango-glyph.h.


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