FontGetWeight

FontGetWeight gets the font weight.

nWeight = FontGetWeight(hFont)

Return Value

nWeight shows how “Bold” a font is. nWeight can be one of the following values:

Value

Meaning

FW_DONTCARE (0)

Lets Windows choose settings

FW_THIN (100)

Extra Thin

FW_EXTRALIGHT (200)

Very Thin

FW_LIGHT (300)

Thin

FW_NORMAL (400)

Normal

FW_MEDIUM (500)

Medium

FW_SEMIBOLD (600)

Half Bold

FW_BOLD (700)

Bold

FW_EXTRABOLD (800)

Very Bold

FW_HEAVY (900)

Extra Bold

Parameters

hFont

Identifies the font.

id-109058