r22737 by jghali - #15459: Non Breaking Dash gives hyphen followed by space

scribus-commit scribus-commit at lists.scribus.net
Sat Oct 20 21:25:10 UTC 2018


Author: jghali
Date: Sat Oct 20 21:25:10 2018
New Revision: 22737

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=22737
Log:
#15459: Non Breaking Dash gives hyphen followed by space

Modified:
    trunk/Scribus/scribus/text/textshaper.cpp

Modified: trunk/Scribus/scribus/text/textshaper.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=22737&path=/trunk/Scribus/scribus/text/textshaper.cpp
==============================================================================
--- trunk/Scribus/scribus/text/textshaper.cpp	(original)
+++ trunk/Scribus/scribus/text/textshaper.cpp	Sat Oct 20 21:25:10 2018
@@ -477,6 +477,9 @@
 				     ch == SpecialChars::FRAMEBREAK || ch == SpecialChars::COLBREAK))
 				{
 					gl.glyph = scFace.emulateGlyph(ch.unicode());
+
+					GlyphMetrics metrics = scFace.glyphBBox(gl.glyph, style.fontSize());
+					positions[i].x_advance = metrics.width;
 				}
 
 				if (gl.glyph < ScFace::CONTROL_GLYPHS)




More information about the scribus-commit mailing list