Copyright (C) 2000-2012 |
Manpages TTF2PKSection: User Commands (1)Updated: 01-Mar-2000 Index Return to Main Contents NAMEttf2pk - convert a TrueType font into TeX's PK formatSYNOPSISttf2pk [-q] [-n] font-name resolutionttf2pk -t [-q] font-name ttf2pk --version | --help DESCRIPTIONThis program converts a TrueType font into a file; the created font can then be used with TeX or LaTeX.All TrueType fonts to be used must be registered in a configuration file called it specifies how to handle each font. CJKV (Chinese/Japanese/Korean/old Vietnamese) subfonts as created by ttf2tfm are also supported. ttf2pk always assumes 10pt as the design size for the written TeX font. PARAMETERS
Environment variables for file searching are described in the manual page of ttf2tfm. THE CONFIGURATION FILEttf2pk uses, similar to dvips, a font definition file called The parameters specified to ttf2tfm are here preserved-ttf2tfm writes out to standard output, as the last line, a proper configuration entry forAs an example, a call to
will produce the following line:
See ttf2tfm(1) and afm2tfm(1) of the dvips package for a detailed description of encoding files. Here a table listing the various ttf2tfm parameters and the corresponding entries:
-s Slant Single replacement glyph names given to ttf2tfm with `-r old-glyphname new-glyphname' are directly specified with `old-glyphname=new-glyphname'. They will be ignored if in subfont mode or if no encoding file is given. One additional parameter in is unique to ttf2pk: `Hinting', which can take the values `On' or `Off'. Some fonts (e.g. the CJK part of are rendered incorrectly if hinting is activated. Default is `On' (you can also use `Yes', `No', `1', and `0'). For a description of subfonts (i.e., entries of the form `<namestem> <sfd-filename> please refer to ttf2tfm(1). The format of is simple. Each line defines a font; first comes the TeX font name, then its TrueType font file name, followed by the parameters in any order. Case is significant (even for parameter names); the parameters are separated from its values by an equal sign, with whitespace possibly surrounding it. ttf2pk reads in line by line, continuing until the TeX font specified on the command line is found, otherwise the programs exits with error code 2. Thus you can use any character invalid in a TeX font name to start a comment line. You can use `\' as the final character of a line to indicate that the input is continued on the next line. The backslash and the following newline character will be removed. ttf2pk will abort if it can't find or read the TeX font metrics file of the given TeX font name. RETURN VALUEIf the call was successful, 0 will be returned. In case of error, the return value is 1. Finally, if the font can't be found in 2 is returned. This simplifies the inclusion of ttf2pk into scripts like mktexpk for automatic font generation.SEE ALSOttf2tfm(1), afm2tfm(1)AVAILABILITYttf2pk is part of the FreeType package, a high quality TrueType rendering library.AUTHORSWerner LEMBERGFr'ed'eric LOYER
Index
This document was created by man2html, using the manual pages. Time: 17:28:00 GMT, April 26, 2024 |