def metrics_for(char)
      glyph = if (char.kind_of?(Integer))
        ISO_LATIN1_ENCODING[char]
      else
        ISO_LATIN1_ENCODING[char.unpack("C*").first]
      end
      @char_metrics[glyph]
    end
def metrics_for(char)
      glyph = if (char.kind_of?(Integer))
        ISO_LATIN1_ENCODING[char]
      else
        ISO_LATIN1_ENCODING[char.unpack("C*").first]
      end
      @char_metrics[glyph]
    end
Get metrics for character. Takes an integer (charcode) or
 a one-char string. currently works only for Latin1 strings,
 since we only have a chartable for the Latin1 charset so far.
 (shamelessly stolen from AFM.pm by Gisle Aas)