r15054 by jghali - #9082 : when exporting to SVG the "Drop Cap" is out of alignment with paragraph
scribus-commit
scribus-commit at lists.scribus.net
Fri May 7 21:30:48 CEST 2010
Revision: 15054
Author: jghali
Date: 2010-05-07T19:20:31.212129Z
Commit message: #9082 : when exporting to SVG the "Drop Cap" is out of alignment with paragraph
Changeset:
M /trunk/Scribus/scribus/plugins/svgexplugin/svgexplugin.cpp
Diffs:
Index: scribus/plugins/svgexplugin/svgexplugin.cpp
===================================================================
--- scribus/plugins/svgexplugin/svgexplugin.cpp (revision 15053)
+++ scribus/plugins/svgexplugin/svgexplugin.cpp (revision 15054)
@@ -688,7 +688,7 @@
chma3.translate(-wide, 0);
}
chma4.translate(0, Item->BaseOffs - (charStyle.fontSize() / 10.0) * hl->glyph.scaleV);
- if (charStyle.effects() & (ScStyle_Subscript | ScStyle_Superscript))
+ if (charStyle.effects() & (ScStyle_Subscript | ScStyle_Superscript | ScStyle_DropCap))
chma6.translate(0, hl->glyph.yoffset);
if (hl->baselineOffset() != 0)
chma6.translate(0, (-charStyle.fontSize() / 10.0) * (charStyle.baselineOffset() / 1000.0));
@@ -953,7 +953,7 @@
chma3.translate(-wide, 0);
}
chma4.translate(0, Item->BaseOffs - (charStyle.fontSize() / 10.0) * hl->glyph.scaleV);
- if (charStyle.effects() & (ScStyle_Subscript | ScStyle_Superscript))
+ if (charStyle.effects() & (ScStyle_Subscript | ScStyle_Superscript | ScStyle_DropCap))
chma6.translate(0, hl->glyph.yoffset);
if (hl->baselineOffset() != 0)
chma6.translate(0, (-charStyle.fontSize() / 10.0) * (charStyle.baselineOffset() / 1000.0));
More information about the scribus-commit
mailing list