r5560 - trunk/eda/fped

werner at docs.openmoko.org werner at docs.openmoko.org
Fri Aug 28 01:44:40 CEST 2009


Author: werner
Date: 2009-08-28 01:44:40 +0200 (Fri, 28 Aug 2009)
New Revision: 5560

Modified:
   trunk/eda/fped/TODO
   trunk/eda/fped/postscript.c
Log:
Measurement text size looked (almost) right on the screen but the size was all 
wrong when printing.

- postscript.c: "realsize" incorrectly assumed that device space used units of
  1/72 inch
- postscript.c: decreased measurement text size from 10 pt to 8.5 pt



Modified: trunk/eda/fped/TODO
===================================================================
--- trunk/eda/fped/TODO	2009-08-27 23:17:39 UTC (rev 5559)
+++ trunk/eda/fped/TODO	2009-08-27 23:44:40 UTC (rev 5560)
@@ -78,3 +78,6 @@
 - advanced: silk line width
 - future: consider editing non-canvas items (e.g., variable names/values) in
   place
+- add a means to cut&paste and copy&paste objects, and perhaps also variables
+  (to move objects, we need to make sure all references are included. besides
+  that, copy&paste should be a slight variation of delete/undelete)

Modified: trunk/eda/fped/postscript.c
===================================================================
--- trunk/eda/fped/postscript.c	2009-08-27 23:17:39 UTC (rev 5559)
+++ trunk/eda/fped/postscript.c	2009-08-27 23:44:40 UTC (rev 5560)
@@ -63,7 +63,7 @@
 #define	PS_MEAS_LINE		mm_to_units(0.015)
 #define	PS_MEAS_ARROW_LEN	mm_to_units(0.15)
 #define	PS_MEAS_ARROW_ANGLE	30
-#define	PS_MEAS_TEXT_HEIGHT	mm_to_units(3.5)	/* ~10 pt, real mm */
+#define	PS_MEAS_TEXT_HEIGHT	mm_to_units(3)		/* ~8.5 pt, real mm */
 #define	PS_MEAS_BASE_OFFSET	mm_to_units(0.5)	/* real mm */
 #define	PS_CROSS_WIDTH		mm_to_units(0.01)
 #define	PS_CROSS_DASH		mm_to_units(0.1)
@@ -755,9 +755,10 @@
 	 */
 
 	fprintf(file,
+"/originalsize 1 0 matrix currentmatrix idtransform pop def\n"
 "/realsize {\n"
 "    254 div 72 mul 1000 div 0 matrix currentmatrix idtransform pop\n"
-"    } def\n");
+"    originalsize div } def\n");
 
 	fprintf(file, "%%%%EndProlog\n");
 }




More information about the commitlog mailing list