Name
pfontdesc:SetWeight -- set weight field
Synopsis
pfontdesc:SetWeight(weight)
Function
Sets the weight field of a font description.

The weight field specifies how bold or light the font should be. This can be a numeric value between 100 and 1000 or one of the following predefined weight constants:

#PANGO_WEIGHT_THIN
The thin weight (= 100).
#PANGO_WEIGHT_ULTRALIGHT
The ultralight weight (= 200).
#PANGO_WEIGHT_LIGHT
The light weight (= 300).
#PANGO_WEIGHT_SEMILIGHT
The semilight weight (= 350).
#PANGO_WEIGHT_BOOK
The book weight (= 380).
#PANGO_WEIGHT_NORMAL
The default weight (= 400).
#PANGO_WEIGHT_MEDIUM
The medium weight (= 500).
#PANGO_WEIGHT_SEMIBOLD
The semibold weight (= 600).
#PANGO_WEIGHT_BOLD
The bold weight (= 700).
#PANGO_WEIGHT_ULTRABOLD
The ultrabold weight (= 800).
#PANGO_WEIGHT_HEAVY
The heavy weight (= 900).
#PANGO_WEIGHT_ULTRAHEAVY
The ultraheavy weight (= 1000).

Inputs
weight
the weight for the font description (see above)

Show TOC