enum Pango::Weight

Overview

An enumeration specifying the weight (boldness) of a font.

Weight is specified as a numeric value ranging from 100 to 1000. This enumeration simply provides some common, predefined values.

Defined in:

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

Enum Members

Thin = 100_u32

the thin weight (= 100) Since: 1.24

Ultralight = 200_u32

the ultralight weight (= 200)

Light = 300_u32

the light weight (= 300)

Semilight = 350_u32

the semilight weight (= 350) Since: 1.36.7

Book = 380_u32

the book weight (= 380) Since: 1.24)

Normal = 400_u32

the default weight (= 400)

Medium = 500_u32

the normal weight (= 500) Since: 1.24

Semibold = 600_u32

the semibold weight (= 600)

Bold = 700_u32

the bold weight (= 700)

Ultrabold = 800_u32

the ultrabold weight (= 800)

Heavy = 900_u32

the heavy weight (= 900)

Ultraheavy = 1000_u32

the ultraheavy weight (= 1000) Since: 1.24

Class Method Summary

Instance Method Summary

Class methods inherited from struct Enum

g_type : UInt64 g_type

Class Method Detail

def self.g_type : UInt64 #

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


[View source]

Instance Method Detail

def bold? #

[View source]
def book? #

[View source]
def heavy? #

[View source]
def light? #

[View source]
def medium? #

[View source]
def normal? #

[View source]
def semibold? #

[View source]
def semilight? #

[View source]
def thin? #

[View source]
def ultrabold? #

[View source]
def ultraheavy? #

[View source]
def ultralight? #

[View source]