summaryrefslogtreecommitdiff
path: root/fonts/utilities/fontinst/test/v1928test2.tex
diff options
context:
space:
mode:
Diffstat (limited to 'fonts/utilities/fontinst/test/v1928test2.tex')
-rw-r--r--fonts/utilities/fontinst/test/v1928test2.tex32
1 files changed, 32 insertions, 0 deletions
diff --git a/fonts/utilities/fontinst/test/v1928test2.tex b/fonts/utilities/fontinst/test/v1928test2.tex
new file mode 100644
index 0000000000..c9b099e643
--- /dev/null
+++ b/fonts/utilities/fontinst/test/v1928test2.tex
@@ -0,0 +1,32 @@
+\documentclass{article}
+
+
+
+
+\def\FontWithCMap#1#2#3{%
+ \font#1=#2\relax
+ \immediate\pdfobj stream file {#3}%
+ \pdffontattr#1{/ToUnicode \the\pdflastobj\space 0 R}%
+}
+\def\AddCMapToFont#1#2{%
+ \immediate\pdfobj stream file {#2}%
+ \pdffontattr#1{/ToUnicode \the\pdflastobj\space 0 R}%
+}
+
+
+\begin{document}
+
+
+\FontWithCMap\test{cmr12}{ot1.cmap}
+\test abcdef ghijkl mnopqr stuvwx yz fi fl ffi ffl
+
+
+\begin{math}
+ a
+ \AddCMapToFont{\textfont2}{oms.cmap}
+ \mathcal{A} - \mathcal{B} + \mathcal{C} * \mathcal{D} \cdot
+ \mathcal{E} \bullet \mathcal{F} \spadesuit
+\end{math}
+
+
+\end{document}