Font/Image Embedding
Characters in Fonts used in the current DVI are extracted and embedded into the current DVI file by File->Font Embedding. The fonts are embedded in the name dviout.etf and it can be removed from the DVI file by dviadd(Attached Programs) or by the buttons:
[Strip Font]: Delete all the embedded fonts.
[Strip All]: Delete all the embedded files.
Moreover the image data files used in the DVI file can be also embedded.
dviadd.exe should be in the directory of the current dviout.
The information on embedded fonts in a DVI file is obtained by Help->Embedding Fonts or more precisely by etfdump(Attached Programs).
Remark: In the case of the distribution of a DVI file with embedded fonts, the embedded fonts should be allowed to do so by the maker of the fonts.
The following can be embedded by File->Font/Image Embedding:
1. Image data files
The image data files indicated in the TeX file to be used are embedded.
2. European TrueType Fonts(The fonts are marked as TT under Font Information) with data from the tfm file.
Indicate the fonts in -TEXPK: (for example, c:\windows\fonts\^s.ttf) and corresponding tfm files in -TEXFONTS: (for example, ^r\tfm\).
Usually the character codes 0c00-0x20 and 0x7f in TeX are transformed according to the rule used in BaKoMa fonts. If there exist some specifications in the font mapping file given by -ftt:, the corresponding data are also embedded.
3. Japanese TrueType Fonts(The fonts rendered by dviout through the font configulation file) with an information from the jfm file.
The fonts are defined in the configulation file indicated by -vfn: in [JFont2]. The font index files with the extension .tti should have been created by ttindex.exe(Attached Programs) for the Japanese TrueType fonts with the extension *.ttf or *.tti.
The dada extracted from jfm files and the font files are embedded.
4. Virtual Fonts(VF/OVF)
The extracted data from virtual fonts are embedded.
5. Font Map/tfm/jfm(related data for the TrueType fonts under WinAPI)
Font Map is the data indicated by the file given by -ftt:.
The extracted data from tfm files are embedded but the whole jfm files are embedded without multiplication (which are checked not by the file names but by comparing the necessary data in the files).
Inner JFM(-Jfm:) and the setting in [WinJFont] are not embedded.
6. PK Fonts
The embedding can be done under several resolutions (by indication the resolutions in dpi such as 300 450 600 separated by spaces). The closest resolution is used by dviout and the fonts are rescaled if it is necessary.
7. initial.par(cf. Embedding into DVI file)
Parameters to initialize dviout are embedded. If initial.par is checked, the contents in the Window below are embedded. In this case, if the Window is empty and the embedded initial.par exists, it will be removed. If initial.par is unchecked, there will be no change.
Example 1. European TrueType Fonts (test_a4x.dvi)
Put BaKoMa fonts in ^w\fonts\^s.ttf and insert ^w\fonts\^s.ttf; at the top of the value of -TEXPK: and set -TEXFONTS:^r\tfm\ and then embed fonts.
To embed all fonts with the related data to ^r\doc\ttnfss\sample.dvi contained in winttf.zip, set -ftt:^w\map\ttfexp.map together with the above setting and check Virtual Font, Font Map/tfm/jfm, TrueType Font.
In this case, if one wants to avoid embedding of the TrueType fonts such as Times New Roman, set -ftt:^x\map\ttfonts.map as usual and do not change -TEXPK: and check only Virtual Font, Font Map/tfm/jfm.
2. European and Japanese TrueType Fonts (tex_b5x.dvi)
Put GT font file gt20001.ttf in ^w\fonts, make gt20001.tti by ttindex.exe, comment out the line 1, ^w\fonts\msmincho in ^x\utility\dviout1.vfn, erace # at the top of the line #1, ^w\fonts\gt20001 there to validate it, set -vfn:^x\utility\dviout1.vfn
and do similarly as in the first part of Example 1.
Moreover check initial.par to arrange the size of the sheet of the page.