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

📄 ttf2tfm.1

📁 字体缩放显示
💻 1
📖 第 1 页 / 共 2 页
字号:
.\" man page for ttf2tfm..TH TTF2TFM 1 10-Jan-2002 "FreeType version 1.5".SH NAMEttf2tfm \- build TeX metric files from a TrueType font.SH SYNOPSIS.na.nh.B ttf2tfm'in +\n(.ku.IR ttffile [ .ttf | .ttc ][\c.BI \-c \ \%caps-height-factor\c][\c.BI \-e \ \%extension-factor\c][\c.BI \-E \ \%encoding-id\^\c][\c.BI \-f \ \%font-index\c][\c.B \-l\c][\c.B \-L\ \c.IR \%ligature-file [ .sfd ]\c][\c.B \-n\c][\c.B \-N\c][\c.B \-O\c][\c.B \-p\ \c.IR \%inencfile [ .enc ]\c][\c.BI \-P \ \%platform-id\^\c][\c.B \-q\c][\c.BI \-r \ \%old-glyphname\ \%new-glyphname\c][\c.B \-R\ \c.IR \%replacement-file [ .rpl ]\c][\c.BI \-s \ \%slant-factor\c][\c.B \-t\ \c.IR \%outencfile [ .enc ]\c][\c.B \-T\ \c.IR \%inoutencfile [ .enc ]\c][\c.B \-u\c][\c.B \-v\ \c.IR \%vplfile [ .vpl ]\c][\c.B \-V\ \c.IR \%scvplfile [ .vpl ]\c][\c.B \-w\c][\c.B \-x\c][\c.BI \-y \ \%vertical-shift-factor\c][\c.IR \%tfmfile [ .tfm ]\c].br.in.B "ttf2tfm \-\^\-version"|.B \-\^\-help.ad.hy....\" ====.\" ==== macro definitions.\" ====..\" here we define \TeX for troff and nroff.if t .ds TX T\\h'-0.1667m'\\v'0.20v'E\\v'-0.20v'\\h'-0.125m'X.if n .ds TX TeX..\" and here the same for \LaTeX.if t \{\.ie '\*(.T'dvi' \.ds LX L\h'-0.36m'\v'-0.15v'\s-3A\s0\h'-0.15m'\v'0.15v'\*(TX.el .ds LX L\h'-0.36m'\v'-0.22v'\s-2A\s0\h'-0.15m'\v'0.22v'\*(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\fC\\$3\fP\\$4...\}.if n \{\.de C\\$1\\$2\\$3\\$4...\}..\" ====.\" ==== end of macro definitions.\" ====....SH DESCRIPTIONThis program extracts the metric and kerning information of a TrueTypefont and converts it into metric files usable by \*(TX(quite similar to.B afm2tfmwhich is part of the.B dvipspackage; please consult its info files for more details on the variousparameters (especially encoding files)..PPSince a TrueType font often contains more than 256\ glyphs, some meansare necessary to map a subset of the TrueType glyphs onto a \*(TXfont.To do this, two mapping tables are needed: the first (called `input' or`raw' encoding) maps the TrueType font to a raw \*(TX font (this mappingtable is used by both.B ttf2tfmand.BR ttf2pk ),and the second (called `output' or `virtual' encoding) maps the raw \*(TXfont to another (virtual) \*(TXfont, providing all kerning and ligature information needed by \*(TX..PPThis two stage mapping has the advantage that one raw font can beaccessed with various \*(LXencodings (e.g.\ T1 and OT1) via the virtual font mechanism, and justone.C PKfile is necessary..PPFor CJKV (Chinese/Japanese/Korean/old Vietnamese) fonts, a differentmechanism is provided (see.B "SUBFONT DEFINITION FILES"below)....SH PARAMETERSMost of the command line switch names are the same as in.B afm2tfmfor convenience.One or more space characters between an option and its value is mandatory;options can't be concatenated.For historical reasons, the first parameter can.I notbe a switch but must be the font name..TP.BI \-c \ caps-height-factorThe height of small caps made with the.B \-Vswitch.Default value of this real number is\ 0.8 times the height of uppercaseglyphs..IPWill be ignored in subfont mode..TP.BI \-e \ extension-factorThe extension factor to stretch the characters horizontally.Default value of this real number is\ 1.0; if less than\ 1.0, you get acondensed font..TP.BI \-E \ encoding-idThe TrueType encoding ID.Default value of this non-negative integer is\ 1..IPWill be ignored if.B \-Nis used..TP.BI \-f \ font-indexThe font index in a TrueType Collection.Default is the first font (index\ 0).[TrueType collections are usually found in some CJK fonts; e.g.\ the firstfont index specifies glyphs and metrics for horizontal writing, and thesecond font index does the same for vertical writing.TrueType collections usually have the extension `\c.C \&.ttc '.].IPWill be ignored for ordinary TrueType fonts..TP.B \-lCreate ligatures in subfonts between first and second bytes of all theoriginal character codes.Example:  Character code\ 0xABCD maps to character position\ 123 insubfont\ 45.Then a ligature in subfont\ 45 between position 0xAB and\ 0xCD pointingto character\ 123 will be produced.The fonts of the Korean H\*(LXpackage use this feature.Note that this option generates correct ligatures only for TrueType fontswhere the input cmap is identical to the output encoding.In case of H\*(LX, TTFs must have platform ID\ 3 and encoding ID\ 5..IPWill be ignored if not in subfont mode..TP.BI \-L \ ligature-fileSame as.BR \-l ,but character codes for ligatures are specified in.IR \%ligature-file .For example, `\c.C \-L\ \%KS-HLaTeX 'generates correct ligatures for the Korean H\*(LXpackage regardless of the platform and encoding ID of the used TrueTypefont (the file.C KS-HLaTeX.sfdis part of the ttf2pk package)..IPLigature files have the same format and extension as.C SFDfiles.This option will be ignored if not in subfont mode..TP.B \-nUse PS names (of glyphs) of the TrueType font.Only glyphs with a valid entry in the selected cmap are used..IPWill be ignored in subfont mode..TP.B \-NUse only PS names of the TrueType font.No cmap is used, thus the switches.B \-Eand.B \-Phave no effect, causing a warning message..IPWill be ignored in subfont mode..TP.B \-OUse octal values for all character codes in the.C VPLfile rather than names; this is useful for symbol or CJK fonts wherecharacter names such as `A' are meaningless..TP.BI \-p \ inencfileThe input encoding file name for the TTF\(->raw\ \*(TXmapping.This parameter has to be specified in a map file(default:.C \%ttfonts.map )recorded in.C \%ttf2pk.cfgfor successive.B ttf2pkcalls..IPWill be ignored in subfont mode..TP.BI \-P \ platform-idThe TrueType platform ID.Default value of this non-negative integer is\ 3..IPWill be ignored if.B \-Nis used..TP.B \-qMake.B ttf2tfmquiet.It suppresses any informational output except warning and errormessages.For CJK fonts, the output can get quite large if you don't specifythis switch..TP.BI \-r \ old-glyphname\ new-glyphnameReplaces.I \%old-glyphnamewith.IR \%new-glyphname .This switch is useful if you want to give an unnamed glyph (i.e., a glyphwhich can be represented with `.gXXX' or `.cXXX' only) a name or if you wantto rename an already existing glyph name.You can't use the `.gXXX' or `.cXXX' glyph name constructs for.IR \%new-glyphname ;multiple occurrences of.B \-rare possible..IPIf in subfont mode or if no encoding file is specified, this switch isignored..TP.BI \-R \ replacement-fileUse this switch if you have many replacement pairs; they can be  collectedin a file which should have `\c.C \&.rpl 'as extension.The syntax used in such replacement files is simple: Each non-emptyline must contain a pair `\c.IR "\%old-glyphname \%new-glyphname" 'separated by whitespace (without the quotation marks).A percent sign starts a line comment; you can continue a line on the nextline with a backslash as the last character..IPIf in subfont mode or if no encoding file is specified, this switch isignored..TP.BI \-s \ slant-factorThe obliqueness factor to slant the font, usually much smaller than\ 1.Default of this real number is\ 0.0; if the value is larger than zero,the characters slope to the right, otherwise to the left..TP.BI \-t \ outencfileThe output encoding file name for the virtual font(s).Only characters in the raw \*(TXfont are used..IPWill be ignored in subfont mode..TP.BI \-T \ inoutencfileThis is equivalent to.RB ` \-p.I inoutencfile.B \-t.IR inoutencfile '..IPWill be ignored in subfont mode..TP.B \-uUse only those characters specified in the output encoding, and noothers.By default,.B ttf2tfmtries to include all characters in the virtual font, even those notpresent in the encoding for the virtual font (it puts them intootherwise-unused positions, rather arbitrarily)..IPWill be ignored in subfont mode..TP.BI \-v \ vplfileOutput a.C VPLfile in addition to the.C TFMfile.If no output encoding file is specified,.B ttf2tfmuses a default font encoding (cmtt10)..B Note:Be careful to use different names for the virtual font and the raw font!.IPWill be ignored in subfont mode..TP.BI \-V \ scvplfileSame as.BR \-v ,but the virtual font generated is a pseudo small caps font obtained byscaling uppercase letters by\ 0.8 (resp. the value specified with.BR \-c )to typeset lowercase.This font handles accented letters and retains proper kerning..IPWill be ignored in subfont mode..TP.B \-wGenerate PostScript encoding vectors containing glyph indices, primarilyused to embed TrueType fonts in pdf\*(TX..B ttf2tfmtakes the.C TFMnames and replaces the suffix with.C \&.enc ;that is, for files.C foo01.tfm ,.C foo02.tfm ,\ \&.\|.\|.\&it creates.C foo01.enc ,.C foo02.enc ,\ \&.\|.\|.\|\&at the same place..IPWill be ignored if not in subfont mode..TP.B \-xRotate all glyphs by 90 degrees counter-clockwise.If no.B \-yparameter is given, the rotated glyphs are shifted down verticallyby\ 0.25em..IPWill be ignored if not in subfont mode..TP.BI \-y \ vertical-shift-factorShift down rotated glyphs by the given amount (the unit is.IR em )..IPIgnored if not in subfont mode or glyphs are not rotated..TP.B \-\^\-versionShows the current version of.B ttf2tfmand the used file search library (e.g..BR kpathsea )..TP.B \-\^\-helpShows usage information..PPIf no.C TFMfile name is given, the name of the.C TTFfile is used, including the full path and replacing the extension with `\c.C \&.tfm '....SH CMAPSContrary to Type\ 1 PostScript fonts (but similar to the new CIDPostScript font format), most TrueType fonts have more than one nativemapping table, also called `cmap', which maps the (internal) TTF glyphindices to the (external) TTF character codes.Common examples are a mapping table to Unicode encoded characterpositions, and the standard Macintosh mapping.To specify a TrueType mapping table, use the options.B \-Pand.BR \-E .With.B \-Pyou specify the platform ID; defined values are:.PP.in +4m.ta 3iC.br.I "platform	platform ID (pid)".sp.ta 3iRApple Unicode	0.brMacintosh	1.brISO	2.brMicrosoft	3.PPThe encoding ID depends on the platform.For pid=0, we ignore the.B \-Eparameter (setting it to zero) since the mapping table is alwaysUnicode version\ 2.0.For pid=1, the following table lists the defined values:.PP.in +2mplatform ID = 1.in.in +4m.ta 3iC.sp.I "script	encoding ID (eid)".sp.ta 3iRRoman	0.brJapanese	1.brChinese	2.brKorean	3.brArabic	4.brHebrew	5.brGreek	6.brRussian	7.brRoman Symbol	8.brDevanagari	9.brGurmukhi	10.brGujarati	11.brOriya	12.brBengali	13.brTamil	14.brTelugu	15.brKannada	16.brMalayalam	17.brSinhalese	18.brBurmese	19.brKhmer	20.brThai	21.brLaotian	22.brGeorgian	23.brArmenian	24.brMaldivian	25.brTibetan	26.brMongolian	27.brGeez	28.brSlavic	29.brVietnamese	30.brSindhi	31.brUninterpreted	32.PPHere are the ISO encoding IDs:.PP.in +2mplatform ID = 2.in.in +4m.ta 3iC.sp.I "encoding	encoding ID (eid)".sp.ta 3iRASCII	0.brISO 10646	1.brISO 8859-1	2.PPAnd finally, the Microsoft encoding IDs:.PP.in +2mplatform ID = 3.in.in +4m.ta 3iC.sp.I "encoding	encoding ID (eid)".sp.ta 3iRSymbol	0.brUnicode 2.0	1.brShift JIS	2.brGB 2312 (1980)	3.brBig 5	4.br

⌨️ 快捷键说明

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