nodes: 0, module; 1, function_definition; 2, function_name:_sortValue_isMonospace; 3, parameters; 4, block; 5, identifier:font; 6, expression_statement; 7, if_statement; 8, if_statement; 9, expression_statement; 10, for_statement; 11, return_statement; 12, comment:"""
      Returns 0 if the font is monospace.
      Returns 1 if the font is not monospace.
      """; 13, attribute; 14, block; 15, not_operator; 16, block; 17, assignment; 18, identifier:glyph; 19, identifier:font; 20, block; 21, integer:0; 22, attribute; 23, identifier:postscriptIsFixedPitch; 24, return_statement; 25, call; 26, return_statement; 27, identifier:testWidth; 28, None; 29, if_statement; 30, identifier:font; 31, identifier:info; 32, integer:0; 33, identifier:len; 34, argument_list; 35, integer:1; 36, comparison_operator:testWidth is None; 37, block; 38, else_clause; 39, identifier:font; 40, identifier:testWidth; 41, None; 42, expression_statement; 43, block; 44, assignment; 45, if_statement; 46, identifier:testWidth; 47, attribute; 48, comparison_operator:testWidth != glyph.width; 49, block; 50, identifier:glyph; 51, identifier:width; 52, identifier:testWidth; 53, attribute; 54, return_statement; 55, identifier:glyph; 56, identifier:width; 57, integer:1
code: def _sortValue_isMonospace(font):
      """
      Returns 0 if the font is monospace.
      Returns 1 if the font is not monospace.
      """
      if font.info.postscriptIsFixedPitch:
          return 0
      if not len(font):
          return 1
      testWidth = None
      for glyph in font:
          if testWidth is None:
              testWidth = glyph.width
          else:
              if testWidth != glyph.width:
                  return 1
      return 0