优化点1:首字母不能为标点符
优化点2:数字不做分割
定位:com.itextpdf.html2pdf.css.apply.util.FontStyleApplierUtil#applyFontStyles
// 如果设置了强制换行的属性 则 修改相关属性 换行
if ("break-all".equalsIgnoreCase(cssProps.get("word-break"))
&& "break-word".equalsIgnoreCase(cssProps.get("word-wrap"))) {
loadDiySplitChar();
element.setProperty(Property.SPLIT_CHARACTERS,new DefaultSplitCharacters(){
@Override
public boolean isSplitCharacter(GlyphLine text, int glyphPos) {
if (!text.get(glyphPos).hasValidUnicode()) {
return false;
} else {
String s = text.toString();
boolean integer = isInteger(s);
int end = text.end;
int i = glyphPos + 1;
if(i<end){