r21356 by jghali -
scribus-commit
scribus-commit at lists.scribus.net
Fri May 27 22:37:15 UTC 2016
Author: jghali
Date: Fri May 27 22:37:15 2016
New Revision: 21356
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=21356
Log:
ooops... committed too much!
Modified:
trunk/Scribus/scribus/pageitem_textframe.cpp
Modified: trunk/Scribus/scribus/pageitem_textframe.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=21356&path=/trunk/Scribus/scribus/pageitem_textframe.cpp
==============================================================================
--- trunk/Scribus/scribus/pageitem_textframe.cpp (original)
+++ trunk/Scribus/scribus/pageitem_textframe.cpp Fri May 27 22:37:15 2016
@@ -1815,8 +1815,9 @@
realCharHeight = qMax(realCharHeight, gm.ascent + gm.descent);
gm = font.glyphBBox(gl.glyph, chsd / 10.0);
realAsce = qMax(realAsce, gm.ascent + gm.descent);
- wide += font.glyphWidth(gl.glyph, charStyle.fontSize() / 10.0);
- }
+ wide += gm.width;
+ }
+ wide = (wide * scaleH) + (1 - scaleH);
realAsce = realAsce * scaleV + offset;
if (realCharHeight == 0)
realCharHeight = font.height(style.charStyle().fontSize() / 10.0);
@@ -1826,7 +1827,6 @@
firstGlyph.scaleV = (realAsce / realCharHeight);
firstGlyph.scaleH *= firstGlyph.scaleV;
firstGlyph.xoffset -= 0.5; //drop caps are always to far from column left edge
- wide *= firstGlyph.scaleH;
}
// This is to mimic pre-boxes branches in case first character of paragraph is a space
// If we don't do this, paragraph offset will not apply correctly to first line
More information about the scribus-commit
mailing list