class Pango::FontMetrics

Overview

A Pango::FontMetrics structure holds the overall metric information for a font.

The information in a Pango::FontMetrics structure may be restricted to a script. The fields of this structure are private to implementations of a font backend. See the documentation of the corresponding getters for documentation of their meaning.

For an overview of the most important metrics, see:

Font metrics

Defined in:

lib/gi-crystal/src/auto/pango-1.0/font_metrics.cr
lib/gtk4/src/bindings/pango/font_metrics.cr

Class Method Summary

Instance Method Summary

Class Method Detail

def self.g_type : UInt64 #

Returns the type id (GType) registered in GLib type system.


Instance Method Detail

def approximate_char_width : Int32 #

def approximate_char_width=(value : Int32) #

def approximate_digit_width : Int32 #

def approximate_digit_width=(value : Int32) #

def ascent : Int32 #

def ascent=(value : Int32) #

def descent : Int32 #

def descent=(value : Int32) #

def height : Int32 #

def height=(value : Int32) #

def ref_count : UInt32 #

def ref_count=(value : UInt32) #

def strikethrough_position : Int32 #

def strikethrough_position=(value : Int32) #

def strikethrough_thickness : Int32 #

def strikethrough_thickness=(value : Int32) #

def to_unsafe : Pointer(Void) #

def underline_position : Int32 #

def underline_position=(value : Int32) #

def underline_thickness : Int32 #

def underline_thickness=(value : Int32) #