In cairo
, fonts can be specified by their family name, e.g. 'HelveticaNeueLTStd'. Then, weights and styles can be defined by cairo.FONT_WEIGHT_[NORMAL|BOLD]
and cairo.FONT_SLANT_[NORMAL|OBLIQUE|ITALIC]
, which are constants with integer values. Only these 2 and 3 options are built in. I am wondering, how to select specific weights and styles in case the family have more of them? E.g. Light, Semi-bold, etc.
I am using pycairo 1.10.0
in python 2.7
, although these things looks the same in any language.
I could find the solution by guessing, so I will answer my question, but still I am wondering if this is the standard way of doing.