[Kst] branches/work/kst/portto4/kst

Barth Netterfield netterfield at astro.utoronto.ca
Wed Jul 22 02:44:33 CEST 2009


SVN commit 1000784 by netterfield:

Some improvements to printing. But it still prints at 72dpi, which is
inadequate.



 M  +9 -4      devel-docs/Kst2Specs/Bugs  
 M  +7 -4      src/libkstapp/mainwindow.cpp  


--- branches/work/kst/portto4/kst/devel-docs/Kst2Specs/Bugs #1000783:1000784
@@ -26,10 +26,15 @@
 
 --------------------
 
-Print to pdf is not vector quality... it should be.
+Showstopper printing problems:  - 2.0 needs these fixed.  otherwise, another beta :-(
 
+Labels in Print to file are not vector quality... they should be.
+This appears to be related to caching of labels...
+
+Point density in printing seems to be limited (much less than the printer resolution).
+
+(Circles seem to print in full resolution.)
+
 --------------------
 
-Print to ps is not vector quality... it should be.
-It is also huge!
-
+Drawing a circle places it behind plots.  It should be in front!
--- branches/work/kst/portto4/kst/src/libkstapp/mainwindow.cpp #1000783:1000784
@@ -318,13 +318,17 @@
         pages.append(_tabWidget->currentView());
         break;
     }
-
     for (int i = 0; i < printer.numCopies(); ++i) {
-      foreach (View *view, pages) {
+      for (int i_page = 0; i_page<pages.count(); i_page++) {
+        View *view = pages.at(i_page);
+        QSize currentSize(view->size());
+        view->resize(printer.pageRect().size());
         view->setPrinting(true);
         view->render(&painter);
         view->setPrinting(false);
-        printer.newPage();
+        view->resize(currentSize);
+        if (i_page<pages.count()-1) printer.newPage();
+
       }
     }
 
@@ -332,7 +336,6 @@
   }
 }
 
-
 void MainWindow::currentViewChanged() {
   _undoGroup->setActiveStack(_tabWidget->currentView()->undoStack());
   _layoutModeAct->setChecked(_tabWidget->currentView()->viewMode() == View::Layout);


More information about the Kst mailing list