Font splitting

Each font is made of a number of files, such as mf and tfm. Not all users need all files, so you can split the package by providing certain font files in different archives.

For example, the BaKoMa package separates the mf files and the Type1 files into separate archives; people without Postscript printers do not need the Type1 files and many DVIview users work without needing mf files.

TEXFonts provides a utility for splitting your package into parts containing particular files. Assuming your package is in the current directory, you could separate out the mf files using this command:

TeXFontsUtils:Extract !Package mfsplit mf
The first parameter is the name of your package directory (or a sub-directory, if you like). The second parameter is the name of the directory you would like the extracted files placed into (the directory is created for you). The final parameter is the name of the files you want to extract.

The command copies the directory structure from the package directory you give it and moves any file called mf to the copied structure.