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

📄 groff_font.man

📁 早期freebsd实现
💻 MAN
字号:
.\" -*- nroff -*-.de TQ.br.ns.TP \\$1...\" Like TP, but if specified indent is more than half.\" the current line-length - indent, use the default indent..de Tp.ie \\n(.$=0:((0\\$1)*2u>(\\n(.lu-\\n(.iu)) .TP.el .TP "\\$1"...TH GROFF_FONT @MAN5EXT@ "@MDATE@" "Groff Version @VERSION@".SH NAMEgroff_font \- format of groff device and font description files.SH DESCRIPTIONThe groff font format is roughly a superset of the ditrofffont format.Unlike the ditroff font format, there is no associated binaryformat.The font files for device.I nameare stored in a directory.BI dev name.There are two types of file: adevice description file called.B DESCand for each font.I Fa font file called.IR F .These are text files;there is no associated binary format..SS DESC file formatThe DESC file can contain the following types of line:.TP.BI res\  nThere are.I nmachine units per inch..TP.BI hor\  nThe horizontal resolution is.I nmachine units..TP.BI vert\  nThe vertical resolution is.I nmachine units..TP.BI sizescale\  nThe scale factor for pointsizes.By default this has a value of 1.One.Iscaled pointis equal toone.RI point/ n .The arguments to the.B unitwidthand.B sizescommands are given in scaled points..TP.BI unitwidth\  nQuantities in the font files are given in machine unitsfor fonts whose point size is.I n scaled points..TP.B tcommandThis means that the postprocessor can handle the.B tand.B uoutput commands..TP.BI sizes\  s1\ s2\|.\|.\|.\|sn\  0This means that the device has fonts at.IR s1 ,.IR s2 ,\|.\|.\|.\| snscaled points.The list of sizes must be terminated by a.BR 0 .Each.BI s ican also be a range of sizes.IR m \- n .The list can extend over more than one line..TP.BI styles\  S1\ S2\|.\|.\|.\|SmThe first.I mfont positions will be associated with styles.IR S1\|.\|.\|.\|Sm ..TP.BI fonts\  n\ F1\ F2\ F3\|.\|.\|.\|FnFonts.I F1\|.\|.\|.\|Fnwill be mounted in the font positions .IR m +1,\|.\|.\|., m + nwhere.I mis the number of styles.This command may extend over more than one line.A font name of.B 0will cause no font to be mounted on the corresponding font position..TP.BI family\  famThe default font family is.IR fam ..TP.B charsetThis line and everything following in the file are ignored.It is allowed for the sake of backwards compatibility..LPThe res, unitwidth, fonts and sizes lines are compulsory.Other commands are ignored by.B troffbut may be used by postprocessors to store arbitrary informationabout the device in the DESC file..SS Font file formatA font file has two sections. The first section is a sequenceof lines each containing a sequence of blank delimitedwords; the first word in the line is a key, and subsequentwords give a value for that key..TP.BI name\  FThe name of the font is.IR F ..TP.BI spacewidth\  nThe normal width of a space is.IR n ..TP.BI slant\  nThe characters of the font have a slant of.I ndegrees. (Positive means forward.).TP.BI ligatures\  lig1\ lig2\|.\|.\|.\|lign\ \fR[ 0 \fR]Characters.IR lig1 ,.IR lig2 ,\|.\|.\|., lignare ligatures; possible ligatures are.BR ff ,.BR fi ,.BR fl and.BR ffl .For backwards compatibiliy, the list of ligatures may be terminatedwith a.BR 0.The list of ligatures may not extend over more than one line..TP.B specialThe font is.IR special ;this means that when a character is requested that is not present inthe current font, it will be searched for in any special fonts thatare mounted..LPOther commands are ignored by.B troffbut may be used by postprocessors to store arbitrary informationabout the font in the font file..LPThe first section can contain comments which start with the.B #character and extend to the end of a line..LPThe second section contains one or two subsections.It must contain a.I charsetsubsectionand it may also contain a.I kernpairssubsection.These subsections can appear in any order.Each subsection starts with a word on a line by itself..LPThe word.B charsetstarts the charset subsection.The.B charsetline is followed by a sequence of lines.Each line gives information for one character.A line comprises a number of fields separatedby blanks or tabs. The format is.IP.Iname metrics type code comment.LP.I nameidentifies the character:if.I nameis a single character.I cthen it corresponds to the groff input character.IR c ;if it is of the form.BI \e cwhere c is a single character, then itcorresponds to the groff input character.BI \e c\fR;otherwise it corresponds to the groff input character.BI \e[ name ](if it is exactly two characters.I xxit can be entered as.BI \e( xx\fR.)Groff supports eight bit characters; however some utilitieshas difficulties with eight bit characters.For this reason, there is a convention that the name.BI char nis equivalent to the single character whose code is.I n .For example,.B char163would be equivalent to the character with code 163which is the pounds sterling sign in ISO Latin-1.The name.B \-\-\-is special and indicates that the character is unnamed;such characters can only be used by means of the.B \eNescape sequence in.BR troff ..LPThe.I typefield gives the character type:.TP1means the character has an descender, for example, p;.TP2means the character has an ascender, for example, b;.TP3means the character has both an ascender and a descender, for example,(..LPThe.I codefield gives the code which the postprocessor uses to print the character.The character can also be input to groff using this code by means of the.B \eNescape sequence.The code can be any integer.If it starts with a.B 0it will be interpreted as octal;if it starts with.B 0xor.B 0Xit will be intepreted as hexdecimal..LPAnything on the line after the code field will be ignored..LPThe.I metricsfield has the form:.IP.IR width [\fB, height [\fB, depth [\fB, italic_correction [\fB, \left_italic_correction [\fB, subscript_correction ]]]]].LPThere must not be any spaces between these subfields.Missing subfields are assumed to be 0.The subfields are all decimal integers.Since there is no associated binary format, thesevalues are not required to fit into a variable of type.B charas they are in ditroff.The.I widthsubfields gives the width of the character.The.I heightsubfield gives the height of the character (upwards is positive);if a character does not extend above the baseline, it should begiven a zero height, rather than a negative height.The.I depthsubfield gives the depth of the character, that is, the distancebelow the lowest point below the baseline to which thecharacter extends (downwards is positive);if a character does not extend below above the baseline, it should begiven a zero depth, rather than a negative depth.The.I italic_correctionsubfield gives the amount of space that should be added after thecharacter when it is immediately to be followed by a characterfrom a roman font.The.I left_italic_correctionsubfield gives the amount of space that should be added before thecharacter when it is immediately to be preceded by a characterfrom a roman font.The.I subscript_correctiongives the amount of space that should be added after a characterbefore adding a subscript.This should be less than the italic correction..LPA line in the charset section can also have the format.IP.Iname \fB".LPThis indicates that.I nameis just another name for the character mentioned in thepreceding line..LPThe word.B kernpairsstarts the kernpairs section.This contains a sequence of lines of the form:.IP.Ic1 c2 n.LPThis means that when character.I c1appears next to character.I c2the space between them should be increased by.IR n .Most entries in kernpairs section will have a negative value for.IR n ..SH FILES.Tp \w'@FONTDIR@/devname/DESC'u+3n.BI @FONTDIR@/dev name /DESCDevice description file for device.IR name ..TP.BI @FONTDIR@/dev name / FFont file for font.I Fof device.IR name ..SH "SEE ALSO".BR groff_out (@MAN5EXT@),.BR @g@troff (@MAN1EXT@).

⌨️ 快捷键说明

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