r17914 by jghali - #11210 : manual kerning not preserved when using multiple duplicate

scribus-commit scribus-commit at lists.scribus.net
Wed Nov 28 21:18:47 UTC 2012


Author: jghali
Date: Wed Nov 28 21:18:47 2012
New Revision: 17914

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=17914
Log:
#11210 : manual kerning not preserved when using multiple duplicate

Modified:
    branches/Version14x/Scribus/scribus/scribusXml.cpp

Modified: branches/Version14x/Scribus/scribus/scribusXml.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=17914&path=/branches/Version14x/Scribus/scribus/scribusXml.cpp
==============================================================================
--- branches/Version14x/Scribus/scribus/scribusXml.cpp (original)
+++ branches/Version14x/Scribus/scribus/scribusXml.cpp Wed Nov 28 21:18:47 2012
@@ -2376,6 +2376,10 @@
 		writer.writeAttribute("CSCALE", style.scaleH() / 10.0);
 	if ( ! style.isInhScaleV())
 		writer.writeAttribute("CSALEV", style.scaleV() / 10.0);
+	if ( ! style.isInhBaselineOffset())
+		writer.writeAttribute("CBASE", style.baselineOffset() / 10.0);
+	if ( ! style.isInhTracking())
+		writer.writeAttribute("KERN", style.tracking() / 10.0); 
 	if ( ! style.isInhFeatures())
 		writer.writeAttribute("CSTYLE", style.effects() & 2047);
 }
@@ -2600,6 +2604,9 @@
 
 	if (attrHasValue(attrs, "CSTW"))
 		newStyle.setStrikethruWidth( qRound(attrAsDbl(attrs, "CSTW", -0.1) * 10) );
+
+	if (attrHasValue(attrs, "KERN"))
+		newStyle.setTracking( qRound(attrAsDbl(attrs, "KERN", 0.0) * 10) );
 
 	if (attrHasValue(attrs, "CSTYLE"))
 	{




More information about the scribus-commit mailing list