struct Pango::GlyphGeometry

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:

  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

Defined in:

lib/gi-crystal/src/auto/pango-1.0/glyph_geometry.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pointer : Pointer(Void), transfer : GICrystal::Transfer) #

[View source]
def self.new(data : LibPango::GlyphGeometry, _transfer : GICrystal::Transfer) #

[View source]
def self.new(width : Int32 | Nil = nil, x_offset : Int32 | Nil = nil, y_offset : Int32 | Nil = nil) #

[View source]

Instance Method Detail

def ==(other : self) : Bool #

[View source]
def width(*args, **options) #

[View source]
def width(*args, **options, &) #

[View source]
def width=(arg) #

[View source]
def x_offset(*args, **options) #

[View source]
def x_offset(*args, **options, &) #

[View source]
def x_offset=(arg) #

[View source]
def y_offset(*args, **options) #

[View source]
def y_offset(*args, **options, &) #

[View source]
def y_offset=(arg) #

[View source]