1
0
mirror of git://projects.qi-hardware.com/fped.git synced 2024-11-25 18:01:54 +02:00

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



git-svn-id: http://svn.openmoko.org/trunk/eda/fped@5560 99fdad57-331a-0410-800a-d7fa5415bdb3
This commit is contained in:
werner 2009-08-27 23:44:40 +00:00
parent 94223a8c54
commit 5b9918ced0
2 changed files with 6 additions and 2 deletions

3
TODO
View File

@ -78,3 +78,6 @@ Future directions:
- 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)

View File

@ -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,
*/
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");
}