r15053 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:28 CEST 2010
Revision: 15053
Author: jghali
Date: 2010-05-07T19:20:11.064009Z
Commit message: #9082 : when exporting to SVG the "Drop Cap" is out of alignment with paragraph
Changeset:
M /branches/Version135/Scribus/scribus/plugins/svgexplugin/svgexplugin.cpp
Diffs:
Index: scribus/plugins/svgexplugin/svgexplugin.cpp
===================================================================
--- scribus/plugins/svgexplugin/svgexplugin.cpp (revision 15052)
+++ scribus/plugins/svgexplugin/svgexplugin.cpp (revision 15053)
@@ -671,7 +671,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));
@@ -936,7 +936,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