struct Pango::GlyphGeometry
- Pango::GlyphGeometry
- Struct
- Value
- Object
Overview
The Pango::GlyphGeometry
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:
- Assume the current point is (x, y)
- Render the current glyph at (x + x_offset, y + y_offset),
- Advance the current point to (x + width, y)
- Render the next glyph
Defined in:
lib/gi-crystal/src/auto/pango-1.0/glyph_geometry.crConstructors
- .new(pointer : Pointer(Void), transfer : GICrystal::Transfer)
- .new(data : LibPango::GlyphGeometry, _transfer : GICrystal::Transfer)
- .new(width : Int32 | Nil = nil, x_offset : Int32 | Nil = nil, y_offset : Int32 | Nil = nil)
Instance Method Summary
- #==(other : self) : Bool
- #width(*args, **options)
- #width(*args, **options, &)
- #width=(arg)
- #x_offset(*args, **options)
- #x_offset(*args, **options, &)
- #x_offset=(arg)
- #y_offset(*args, **options)
- #y_offset(*args, **options, &)
- #y_offset=(arg)
Constructor Detail
def self.new(width : Int32 | Nil = nil, x_offset : Int32 | Nil = nil, y_offset : Int32 | Nil = nil)
#