Function

Pango-1.0Pangoparse_weight

  • Parses a font weight.

    The allowed values are "heavy", "ultrabold", "bold", "normal", "light", "ultraleight" and integers. Case variations are ignored.

    Parameters

    • str: string

      a string to parse.

    • warn: boolean

      if true, issue a g_warning() on bad input.

    Returns [boolean, Pango.Weight]

    true if str was successfully parsed.