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/pango/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.


[View source]

Instance Method Detail

def approximate_char_width : Int32 #

[View source]
def approximate_char_width=(value : Int32) #

[View source]
def approximate_digit_width : Int32 #

[View source]
def approximate_digit_width=(value : Int32) #

[View source]
def ascent : Int32 #

[View source]
def ascent=(value : Int32) #

[View source]
def descent : Int32 #

[View source]
def descent=(value : Int32) #

[View source]
def height : Int32 #

[View source]
def height=(value : Int32) #

[View source]
def ref_count : UInt32 #

[View source]
def ref_count=(value : UInt32) #

[View source]
def strikethrough_position : Int32 #

[View source]
def strikethrough_position=(value : Int32) #

[View source]
def strikethrough_thickness : Int32 #

[View source]
def strikethrough_thickness=(value : Int32) #

[View source]
def to_unsafe : Pointer(Void) #

[View source]
def underline_position : Int32 #

[View source]
def underline_position=(value : Int32) #

[View source]
def underline_thickness : Int32 #

[View source]
def underline_thickness=(value : Int32) #

[View source]