Browse Source

Output charset property of font if it exists

master
Debao Zhang 11 years ago
parent
commit
f97bf1a1cd
  1. 4
      src/xlsx/xlsxstyles.cpp

4
src/xlsx/xlsxstyles.cpp

@ -414,6 +414,10 @@ void Styles::writeFont(QXmlStreamWriter &writer, const Format &format, bool isDx
writer.writeEmptyElement(QStringLiteral("name")); writer.writeEmptyElement(QStringLiteral("name"));
writer.writeAttribute(QStringLiteral("val"), format.fontName()); writer.writeAttribute(QStringLiteral("val"), format.fontName());
} }
if (format.hasProperty(FormatPrivate::P_Font_Charset)) {
writer.writeEmptyElement(QStringLiteral("charset"));
writer.writeAttribute(QStringLiteral("val"), QString::number(format.intProperty(FormatPrivate::P_Font_Charset)));
}
if (format.hasProperty(FormatPrivate::P_Font_Family)) { if (format.hasProperty(FormatPrivate::P_Font_Family)) {
writer.writeEmptyElement(QStringLiteral("family")); writer.writeEmptyElement(QStringLiteral("family"));
writer.writeAttribute(QStringLiteral("val"), QString::number(format.intProperty(FormatPrivate::P_Font_Family))); writer.writeAttribute(QStringLiteral("val"), QString::number(format.intProperty(FormatPrivate::P_Font_Family)));

Loading…
Cancel
Save