From: <ai...@us...> - 2009-03-12 20:12:31
|
Revision: 9730 http://plplot.svn.sourceforge.net/plplot/?rev=9730&view=rev Author: airwin Date: 2009-03-12 20:12:11 +0000 (Thu, 12 Mar 2009) Log Message: ----------- AWI for Alban Rochel. Remove all special treatment of text positions for SVG. Modified Paths: -------------- trunk/drivers/qt.cpp trunk/drivers/qt.h Modified: trunk/drivers/qt.cpp =================================================================== --- trunk/drivers/qt.cpp 2009-03-12 15:31:50 UTC (rev 9729) +++ trunk/drivers/qt.cpp 2009-03-12 20:12:11 UTC (rev 9730) @@ -197,7 +197,6 @@ m_dWidth=i_iWidth; m_dHeight=i_iHeight; downscale=1.; - svgBugFactor=1.; // fontScalingFactor=1.; } @@ -294,7 +293,7 @@ p->drawPicture(xOffset+bounding.width()/2., -yOffset, tempPic); - xOffset+=bounding.width()/svgBugFactor; + xOffset+=bounding.width(); } QPicture QtPLDriver::getTextPicture(PLUNICODE* text, int len, int chrht) @@ -665,7 +664,6 @@ // Let's fill the background m_painterP->fillRect(0, 0, width(), height(), QBrush(Qt::black)); - svgBugFactor=1.; fontScalingFactor=1.; } @@ -917,7 +915,7 @@ { setSize(QSize(m_dWidth, m_dHeight)); m_painterP=NULL; - svgBugFactor=1.37; + fontScalingFactor=1.; } @@ -1042,7 +1040,7 @@ m_dWidth=pageRect().width(); m_dHeight=pageRect().height(); m_painterP=NULL; - svgBugFactor=1.; + fontScalingFactor=1.; } @@ -1213,7 +1211,6 @@ pic=new QPicture; m_painterP->begin(pic); - svgBugFactor=1.; fontScalingFactor=0.6; } Modified: trunk/drivers/qt.h =================================================================== --- trunk/drivers/qt.h 2009-03-12 15:31:50 UTC (rev 9729) +++ trunk/drivers/qt.h 2009-03-12 20:12:11 UTC (rev 9730) @@ -98,7 +98,6 @@ double yOffset; double xOffset; - double svgBugFactor; // factor to fix the oversized bounding boxes for texts in the SVG driver double fontScalingFactor;// To have a nice font size on qtwidget QPainter* m_painterP; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |