summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/metafont/misc/mode2dpi.mf
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/metafont/misc/mode2dpi.mf')
-rw-r--r--Master/texmf-dist/metafont/misc/mode2dpi.mf9
1 files changed, 9 insertions, 0 deletions
diff --git a/Master/texmf-dist/metafont/misc/mode2dpi.mf b/Master/texmf-dist/metafont/misc/mode2dpi.mf
new file mode 100644
index 00000000000..9ac21940cfb
--- /dev/null
+++ b/Master/texmf-dist/metafont/misc/mode2dpi.mf
@@ -0,0 +1,9 @@
+% Usage: mf '\mode=what_ever_mode; \input mode2dpi'
+
+let myexit = primitive_end_;
+mode_setup;
+string dpi;
+dpi := decimal round pixels_per_inch;
+message "DPI = " & dpi;
+fontmaking := 0;
+myexit;