⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ttf2pk.1

📁 字体缩放显示
💻 1
字号:
.\" man page for ttf2pk..TH TTF2PK 1 10-Jan-2002 "FreeType version 1.5".SH NAMEttf2pk \- convert a TrueType font into TeX's PK format.SH SYNOPSIS.na.nh.B ttf2pk.RB [ \-q ].RB [ \-n ].I "\%font-name \%resolution".br.B ttf2pk.B \-t.RB [ \-q ].I \%font-name.br.B "ttf2pk \-\^\-version"|.B \-\^\-help.ad.hy....\" ====.\" ==== macro definitions.\" ====..\" here we define \TeX for troff and nroff.if t .ds TX \fRT\\h'-0.1667m'\\v'0.20v'E\\v'-0.20v'\\h'-0.125m'X\fP.if n .ds TX TeX..\" and here the same for \LaTeX.if t \{\.ie '\*(.T'dvi' \.ds LX \fRL\h'-0.36m'\v'-0.15v'\s-3A\s0\h'-0.15m'\v'0.15v'\fP\*(TX.el .ds LX \fRL\h'-0.36m'\v'-0.22v'\s-2A\s0\h'-0.15m'\v'0.22v'\fP\*(TX.\}.if n .ds LX LaTeX..\" \LaTeXe.\" note that we need \vareps for TeX instead of \eps which can only be.\" accessed with the \N escape sequence (in the Math Italic font).if t \{\.ie '\*(.T'dvi' .ds LE \*(LX\h'0.15m'2\v'0.20v'\f(MI\N'34'\fP\v'-0.20v'.el .ds LE \*(LX\h'0.15m'2\v'0.20v'\(*e\v'-0.20v'.\}.if n .ds LE LaTeX\ 2e..\" a typewriter font.if t \{\.de C\fC\\$1\fP\\$2...\}.if n \{\.de C\\$1\\$2...\}..\" ====.\" ==== end of macro definitions.\" ====....SH DESCRIPTIONThis program converts a TrueType font into a.C PKfile; the created font can then be used with \*(TXor \*(LX..PPCJKV (Chinese/Japanese/Korean/old Vietnamese) subfonts as created by .B ttf2tfmare also supported..PP.B ttf2pkalways assumes 10pt as the design size for the written \*(TXfont....SH PARAMETERS.TP.B \-qThis optional switch makes.B ttf2pkquiet.It suppresses any informational output except warning and errormessages..TP.B \-nUse only `\c.C \&.pk 'as the extension instead of `\c.C \&. \c.RI < \%resolution >\c.C pk '..TP.B \-tTest for the existence of.IR \%font-name .Returns 0 on success and prints out the corresponding line ofa map file (default:.C \%ttfonts.map ),provided the.B \-qswitch isn't set..TP.I font-nameThe \*(TXname of the font..B ttf2pklooks this name up in a map file (see below) for further information howto process the font..TP.I resolutionThe resolution, given in dots per inch.Currently the horizontal resolution is equal to the verticalresolution.The design size is always assumed to be 10pt..TP.B \-\^\-versionShows the current version of.B ttf2pkand the used file search library (e.g.\ \c.BR kpathsea )..TP.B \-\^\-helpShows usage information..PPEnvironment variables for file searching are described in the manual pageof.BR ttf2tfm ....SH "THE CONFIGURATION FILE".B ttf2pkuses a small configuration file called.C ttf2pk.cfg ;in each line it contains a keyword with its value, separated by whitespace.Comment lines can start with any of the following characters: `*', `#',`;', and `%'.Leading whitespace is ignored..PPCurrently, only one keyword, `map', is recognized in this file; it takesa map file name as a parameter.If no extension is given to the map file name,.C \&.mapis appended.No whitespace is allowed in the map file name.The `map' keyword can be given more than once to specify multiple mapfiles; if the map file name is prepended by a plus sign, it is added tothe list of map files to be used.Example:.PP.in +2m.C "map  foo".br.C "map +bar".PPThis makes.B ttf2pkto first read.C foo.map ,then.C bar.map ..PPIf the configuration file is not found,.B ttf2pktries to use.C \%ttfonts.mapinstead....SH "MAP FILES"Parameters specified to.B ttf2tfmare preserved for.B ttf2pkin map files\(em\c.B ttf2tfmwrites out to standard output, as the last line, a proper entry for amap file..PPAs an example, a call to.PP.in +2m.C "ttf2tfm arial -p T1.enc -s 0.25 -P 1 -E 0 arials".PPwill produce the following line:.PP.in +2m.C "arials   arial Slant=0.25 Pid=1 Eid=0 Encoding=T1.enc".PPSee.BR ttf2tfm (1)and.BR afm2tfm (1)of the.B dvipspackage for a detailed description of encoding files..PPHere a table listing the various.B ttf2tfmparameters and the corresponding entries in a map file:.PP.in +4m.ta 2i.br-s	Slant.br-e	Extend.br-p	Encoding.br-f	Fontindex.br-P	Pid.br-E	Eid.br-n	PS=Yes.br-N	PS=Only.br-R	Replacement.br-x	Rotate=Yes.br-y	Y-Offset.PPSingle replacement glyph names given to.B ttf2tfmwith `\c.BI \-r \ old-glyphname\ new-glyphname\c\&'are directly specified with `\c.IR old-glyphname = new-glyphname '.They will be ignored if in subfont mode or if no encoding file is given..PPOne additional parameter in a map file is unique to.BR ttf2pk :`Hinting', which can take the values `On' or `Off'.Some fonts (e.g.\ the CJK part of.C \%cyberbit.ttf )are rendered incorrectly if hinting is activated.Default is `On' (you can also use `Yes', `No', `1', and `0')..PPFor a description of subfonts (i.e., entries of the form `\c.I <namestem>\c.C @\c.I <sfd-filename>\c.C @ ')please refer to.BR ttf2tfm (1)..PPThe format of a map file is simple.Each line defines a font; first comes the \*(TXfont name, then its TrueType font file name, followed by theparameters in any order.Case is significant (even for parameter names); the parameters areseparated from its values by an equal sign, with whitespace possiblysurrounding it..B ttf2pkreads in all map files line by line in the order given in theconfiguration file, continuing until the \*(TX font specified on thecommand line is found, otherwise the programs exits with error code\ 2.Thus you can use any character invalid in a \*(TXfont name to start a comment line..PPYou can use `\\' as the final character of a line to indicate that theinput is continued on the next line.The backslash and the following newline character will be removed..PP.B ttf2pkwill abort if it can't find or read the \*(TXfont metrics file of the given \*(TXfont name....SH "RETURN VALUE"If 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 the map files,2\ is returned.This simplifies the inclusion of.B ttf2pkinto scripts like.B mktexpkfor automatic font generation....SH "SEE ALSO".BR ttf2tfm (1),.BR afm2tfm (1)...SH AVAILABILITY.B ttf2pkis part of the FreeType\ 1 package, a high quality TrueType renderinglibrary....SH AUTHORSWerner LEMBERG.C <wl@gnu.org>.brFr\('ed\('eric LOYER.C <loyer@ensta.fr>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -