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

📄 fontid.3

📁 linux系统下的音频通信
💻 3
字号:
'\"'\" Copyright (c) 1996 Sun Microsystems, Inc.'\"'\" See the file "license.terms" for information on usage and redistribution'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.'\" '\" SCCS: @(#) FontId.3 1.4 97/11/04 18:03:07'\" .so man.macros.TH Tk_FontId 3 8.0 Tk "Tk Library Procedures".BS.SH NAMETk_FontId, Tk_FontMetrics, Tk_PostscriptFontName \- accessor functions for fonts.SH SYNOPSIS.nf\fB#include <tk.h>\fR.spFont\fBTk_FontId(\fItkfont\fB)\fR.spvoid\fBTk_GetFontMetrics(\fItkfont, fmPtr\fB)\fR.spint\fBTk_PostscriptFontName(\fItkfont, dsPtr\fB)\fR.SH ARGUMENTS.AS Tk_FontMetrics *dsPtr.AP Tk_Font tkfont inOpaque font token being queried.  Must have been returned by a previouscall to \fBTk_GetFont\fR..AP Tk_FontMetrics *fmPtr outPointer to structure in which the font metrics for \fItkfont\fR willbe stored..AP Tcl_DString *dsPtr outPointer to an initialized \fBTcl_DString\fR to which the name of thePostscript font that corresponds to \fItkfont\fR will be appended..BE.SH DESCRIPTION.PPGiven a \fItkfont\fR, \fBTk_FontId\fR returns the token that should beselected into an XGCValues structure in order to construct a graphicscontext that can be used to draw text in the specified font.  .PP\fBTk_GetFontMetrics\fR computes the ascent, descent, and linespace of the\fItkfont\fR in pixels and stores those values in the structure pointer to by\fIfmPtr\fR.  These values can be used in computations such as to spacemultiple lines of text, to align the baselines of text in differentfonts, and to vertically align text in a given region.  See thedocumentation for the \fBfont\fR command for definitions of the termsascent, descent, and linespace, used in font metrics.  .PP\fBTk_PostscriptFontName\fR maps a \fItkfont\fR to the correspondingPostcript font name that should be used when printing.  The return valueis the size in points of the \fItkfont\fR and the Postscript font name isappended to \fIdsPtr\fR.  \fIDsPtr\fR must refer to an initialized\fBTcl_DString\fR.  Given a ``reasonable'' Postscript printer, thefollowing screen font families should print correctly:.IP\fBAvant Garde\fR, \fBArial\fR, \fBBookman\fR, \fBCourier\fR, \fBCourier New\fR, \fBGeneva\fR, \fBHelvetica\fR, \fBMonaco\fR,\fBNew Century Schoolbook\fR, \fBNew York\fR, \fBPalatino\fR, \fBSymbol\fR,\fBTimes\fR, \fBTimes New Roman\fR, \fBZapf Chancery\fR, and \fBZapf Dingbats\fR..PPAny other font families may not print correctly because the computedPostscript font name may be incorrect or not exist on the printer..VS 8.0 br.SH DATA STRUCTURESThe Tk_FontMetrics data structure is used by Tk_GetFontMetrics to return information about a font and is defined as follows:.CStypedef struct Tk_FontMetrics {    int ascent;    int descent;    int linespace;} Tk_FontMetrics;.CEThe \fIlinespace\fR field is the amount in pixels that the tallestletter sticks up above the baseline, plus any extra blank space addedby the designer of the font..PPThe \fIdescent\fR is the largest amount in pixels that any lettersticks below the baseline, plus any extra blank space added by thedesigner of the font..PPThe \fIlinespace\fR is the sum of the ascent and descent.  How farapart two lines of text in the same font should be placed so that noneof the characters in one line overlap any of the characters in theother line..VE.SH KEYWORDSfont

⌨️ 快捷键说明

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