78ed81a3 |
1 | # |
2 | # magic.tex: |
3 | # |
4 | |
5 | # Although we may know the offset of certain text fields in TeX DVI and |
6 | # font files, we cannot use them reliably because they may not be zero |
7 | # terminated. |
8 | |
9 | 0 string \367\002 TeX DVI file |
10 | 0 string \367\203 TeX generic font data |
11 | 0 string \367\131 TeX packed font data |
12 | 0 string \367\312 TeX virtual font data |
13 | 0 string This\ is\ TeX, TeX transcript text |
14 | 0 string This\ is\ METAFONT, METAFONT transcript text |
15 | |
16 | # Unfortunately, there is no way to detect TeX Font Metric (*.tfm) files |
17 | # without breaking them apart and reading the data. The following patterns |
18 | # match most *.tfm files generated by METAFONT or afm2tfm. |
19 | 2 string \000\021 TeX font metric data |
20 | 2 string \000\022 TeX font metric data |