diff options
Diffstat (limited to 'Master/texmf-dist/metafont/misc/mode2dpixy.mf')
-rw-r--r-- | Master/texmf-dist/metafont/misc/mode2dpixy.mf | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Master/texmf-dist/metafont/misc/mode2dpixy.mf b/Master/texmf-dist/metafont/misc/mode2dpixy.mf new file mode 100644 index 00000000000..6a5a94abd75 --- /dev/null +++ b/Master/texmf-dist/metafont/misc/mode2dpixy.mf @@ -0,0 +1,12 @@ +% Usage: mf '\mode=what_ever_mode; \input mode2dpi' + +let myexit = primitive_end_; +mode_setup; +string xdpi; +xdpi := decimal round pixels_per_inch; +message "XDPI = " & xdpi; +string ydpi; +ydpi := decimal round (pixels_per_inch * aspect_ratio); +message "YDPI = " & ydpi; +fontmaking := 0; +myexit; |