Pango.parse_weight
Description: Reference for Pango.parse_weight

### Function

# Pango.parse_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` | `const char*`
| a string to parse.
| Ownership is not transferred to the callee
| The string is a NUL terminated UTF-8 string
`weight` | `PangoWeight`
| a `PangoWeight` to store the result in.
| Direction: out
| Ownership of the data is transferred to the callee
`warn` | `gboolean`
| if `TRUE`, issue a `g_warning()` on bad input.

#### Return value

Returns: `gboolean`
`TRUE` if `str` was successfully parsed.