Flags (text)


Weight
specify the weight of a font, a value between 100 (light) and 1000 (bold). However, some constants are predefined :
SGTK_WEIGHT_THIN a thin weight -> 100
SGTK_WEIGHT_ULTRALIGHT a ultralight weight -> 200
SGTK_WEIGHT_LIGHT a light weight -> 380
SGTK_WEIGHT_BOOK a book weight -> 380
SGTK_WEIGHT_NORMAL a normal weight -> 400
SGTK_WEIGHT_MEDIUM a medium weight -> 500
SGTK_WEIGHT_SEMIBOLD a semibold weight -> 600
SGTK_WEIGHT_BOLD a bold weight -> 700
SGTK_WEIGHT_ULTRABOLD a altrabold weight -> 800
SGTK_WEIGHT_HEAVY a heavy weight -> 900
SGTK_WEIGHT_ULTRAHEAVY a ultraheavy weight -> 1000

Style
specify the various slant styles possible for a font :
SGTK_STYLE_NORMAL the font is upright
SGTK_STYLE_OBLIQUE the font is slanted, but in a roman style.
SGTK_STYLE_ITALIC the font is slanted in an italic style.

Capitalization
specify the capitalization variant of the font :
SGTK_VARIANT_NORMAL the font is normal
SGTK_VARIANT_SMALLCAPS A font with the lower case characters replaced by smaller variants of the capital characters

Stretch
specify the width of the font relative to other designs within a family :
SGTK_STRETCH_ULTRACONDENSED ultra condensed
SGTK_STRETCH_EXTRACONDENSED extra condensed
SGTK_STRETCH_CONDENSED condensed
SGTK_STRETCH_SEMICONDENSED semi condensed
SGTK_STRETCH_NORMAL normal
SGTK_STRETCH_SEMIEXPANDED semi expanded
SGTK_STRETCH_EXPANDED expanded
SGTK_STRETCH_EXTRAEXPANDED extra expanded
SGTK_STRETCH_ULTRAEXPANDED ultra expanded

Underline
specify whether text should be underlined, and if so, the type of underlining :
SGTK_UNDERLINE_NONE nothing
SGTK_UNDERLINE_SINGLE a single underline
SGTK_UNDERLINE_DOUBLE a double underline
SGTK_UNDERLINE_LOW a single underline should be drawn at a position beneath the ink extents of the text being underlined. This should be used only for underlining single characters, such as for keyboard accelerators
SGTK_UNDERLINE_ERROR a wavy underline should be drawn below. This underline is typically used to indicate an error such as a possilble mispelling; in some cases a contrasting color may automatically be used

Justification
justifying the text for few widgets :
SGTK_JUSTIFY_LEFT at the left edge
SGTK_JUSTIFY_RIGHT at the right edge
SGTK_JUSTIFY_CENTER in the center of wthe idget
SGTK_JUSTIFY_FILL distributed across the widget

Back