summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/fontinst/base/test/v1928test2.tex
blob: c9b099e643cc72b6324849b502fd839e83a6673c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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}