enum

CrImage::Font::Weight

Inherits Enum / Comparable / Value / Object

Weight selects a normal, light or bold face. Not all fonts support weights.

The named Weight contants(e.g Bold) corresponds to CSS' common weight names (e.g. "Bold"), but the numerical values differ, so that in Crystal, the zero value means to use a normal weight. For the CSS names and values see https://developer.mozilla.org/en/docs/Web/CSS/font-weight

Constants

Thin = -3
ExtraLight = -2
Light = -1
Normal = 0
Medium = 1
SemiBold = 2
Bold = 3
ExtraBold = 4
Black = 5

Instance methods

black?

Returns true if this enum value equals Black

Source
bold?

Returns true if this enum value equals Bold

Source
extra_bold?

Returns true if this enum value equals ExtraBold

Source
extra_light?

Returns true if this enum value equals ExtraLight

Source
light?

Returns true if this enum value equals Light

Source
medium?

Returns true if this enum value equals Medium

Source
normal?

Returns true if this enum value equals Normal

Source
semi_bold?

Returns true if this enum value equals SemiBold

Source
thin?

Returns true if this enum value equals Thin

Source