aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHolden Rohrer <hdawg7797@yahoo.com>2019-09-12 16:48:17 -0400
committerHolden Rohrer <hdawg7797@yahoo.com>2019-09-12 16:48:17 -0400
commit443631e84c8e0606c84d74678f1ba590874e0bae (patch)
tree3d044cf8334373b0c0dd90a48ffcf71b008c5056
parent6c95cb355fb5d3b35a7fc87d144a32389e4bd7bd (diff)
portable font codes
-rw-r--r--fonts.tex10
1 files changed, 10 insertions, 0 deletions
diff --git a/fonts.tex b/fonts.tex
new file mode 100644
index 0000000..6822f2e
--- /dev/null
+++ b/fonts.tex
@@ -0,0 +1,10 @@
+%gives ''\newfont myfont=cmr10@14pt''
+\newcount\spacing
+\newdimen\size
+\def\adjs{%adjust spacing
+ \baselineskip=\size \multiply\baselineskip by \spacing \divide\baselineskip by 100 \multiply\baselineskip by 6 \divide\baselineskip by 5%6/5 = normal 1.2 addition for character depth
+}
+\def\newfont#1=#2@#3pt{%name, base, size
+ \expandafter\font\csname x#1\endcsname=#2 at #3pt
+ \expandafter\edef\csname #1\endcsname{\size=#3pt \adjs \csname x#1\endcsname}
+}