texmf-dist/metafont/misc/mode2dpixy.mf
raw| 1 | % Usage: mf '\mode=what_ever_mode; \input mode2dpi' |
| 2 | |
| 3 | let myexit = primitive_end_; |
| 4 | mode_setup; |
| 5 | string xdpi; |
| 6 | xdpi := decimal round pixels_per_inch; |
| 7 | message "XDPI = " & xdpi; |
| 8 | string ydpi; |
| 9 | ydpi := decimal round (pixels_per_inch * aspect_ratio); |
| 10 | message "YDPI = " & ydpi; |
| 11 | fontmaking := 0; |
| 12 | myexit; |