fo:font-size may not be 0
matus.uzak at gmail.com
matus.uzak at gmail.com
Mon May 14 14:36:40 BST 2012
.. and one more comment. According to the MS-PPT spec. fontSize MUST
be greater than or equal to 1 and less than or equal to 4000.
Please send me any test file you have, there's something wrong going
on in the filter when fontSize=0. I have to find the correct
fontSize,
else the application default font size will be used. There's no
fontSize for the paragraph style in PPT.
In general filters write such zero values to make a problem clearly
visible. It's much hard to detect such a problem when the application
defaults are applied.
But I understand that it's an invalid ODF file. Cool that you fixed
all those ODF violations.
--- a/filters/stage/powerpoint/PptToOdp.cpp
+++ b/filters/stage/powerpoint/PptToOdp.cpp
@@ -1232,7 +1232,9 @@ void PptToOdp::defineTextProperties(KoGe
style.addProperty("fo:font-family", name, text);
}
// fo:font-size
- style.addProperty("fo:font-size", pt(cf.fontSize()), text);
+ if (cf.fontSize() > 0) {
+ style.addProperty("fo:font-size", pt(cf.fontSize()), text);
+ }
// fo:font-style: "italic", "normal" or "oblique
style.addProperty("fo:font-style", cf.italic() ?"italic" :"normal", text);
// fo:font-variant: "normal" or "small-caps"
More information about the calligra-devel
mailing list