Map<Attribute, Object> map = new HashMap<Attribute, Object>(); map.put(TextAttribute.FONT, c.getFont());//原字体 map.put(TextAttribute.STRIKETHROUGH, TextAttribute.STRIKETHROUGH_ON);//增加的属性 c.setFont(Font.getFont(map));//设置新字体