code: private static Length  parseFontSize(String val)
     {
        try {
           Length  size = FontSizeKeywords.get(val);
           if (size == null)
              size = parseLength(val);
           return size;
        } catch (SVGParseException e) {
           return null;
        }
     }
docs: Parse a font size keyword or numerical value