Function
Pangoparse_weight
Declaration [src]
gboolean
pango_parse_weight (
const char* str,
PangoWeight* weight,
gboolean warn
)
Description [src]
Parses a font weight.
The allowed values are “heavy”, “ultrabold”, “bold”, “normal”, “light”, “ultraleight” and integers. Case variations are ignored.
Parameters
str
-
Type:
const char*
A string to parse.
The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string. weight
-
Type:
PangoWeight
A
PangoWeight
to store the result in.The argument will be set by the function. The caller of the function takes ownership of the returned data, and is responsible for freeing it. warn
-
Type:
gboolean
If
TRUE
, issue ag_warning()
on bad input.