private static Map<? extends Attribute, ?> fixattrs(Map<? extends Attribute, ?> attrs) {
        Map<Attribute, Object> ret = new HashMap<Attribute, Object>();
        for (Map.Entry<? extends Attribute, ?> e : attrs.entrySet()) {
            if (e.getKey() == TextAttribute.SIZE) {
                ret.put(e.getKey(), ((Number) e.getValue()).floatValue());
            } else {
                ret.put(e.getKey(), e.getValue());
            }
        }
        return (ret);
    }