code: int getRawWidth(int c, String name) {
          Object metrics[];
          if (name == null) { // font specific
              metrics = (Object[])CharMetrics.get(Integer.valueOf(c));
          }
          else {
              if (name.equals(".notdef"))
                  return 0;
              metrics = (Object[])CharMetrics.get(name);
          }
          if (metrics != null)
              return ((Integer)(metrics[1])).intValue();
          return 0;
      }
docs: Gets the width from the font according to the <CODE>name</CODE> or,
  if the <CODE>name</CODE> is null, meaning it is a symbolic font,
  the char <CODE>c</CODE>.
  @param c the char if the font is symbolic
  @param name the glyph name
  @return the width of the char