Explorar el Código

Add Support For EastAsia FontFamily In Formatting

看到在段落的设置中添加了对中文字体的支持,但是在文字的样式中并没有,在此同样添加对中文字体的支持。
master
xwgli hace 8 años
padre
commit
a6a2a9e80a
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2
    1
      DocX/Formatting.cs

+ 2
- 1
DocX/Formatting.cs Ver fichero

@@ -193,7 +193,8 @@ namespace Novacode
XName.Get("rFonts", DocX.w.NamespaceName),
new XAttribute(XName.Get("ascii", DocX.w.NamespaceName), fontFamily.Name),
new XAttribute(XName.Get("hAnsi", DocX.w.NamespaceName), fontFamily.Name), // Added by Maurits Elbers to support non-standard characters. See http://docx.codeplex.com/Thread/View.aspx?ThreadId=70097&ANCHOR#Post453865
new XAttribute(XName.Get("cs", DocX.w.NamespaceName), fontFamily.Name) // Added by Maurits Elbers to support non-standard characters. See http://docx.codeplex.com/Thread/View.aspx?ThreadId=70097&ANCHOR#Post453865
new XAttribute(XName.Get("cs", DocX.w.NamespaceName), fontFamily.Name), // Added by Maurits Elbers to support non-standard characters. See http://docx.codeplex.com/Thread/View.aspx?ThreadId=70097&ANCHOR#Post453865
new XAttribute(XName.Get("eastAsia", DocX.w.NamespaceName), fontFamily.Name) // DOCX in china #57
)
);
}

Cargando…
Cancelar
Guardar