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

📄 qfontinfo.3qt

📁 tmark1.11:用于生成QT/EMBEDDED应用工程的Markfile文件
💻 3QT
字号:
.TH QFontInfo 3qt "6 July 1999" "Troll Tech AS" \" -*- nroff -*-.\" Copyright 1992-1999 Troll Tech AS.  All rights reserved.  See the.\" license file included in the distribution for a complete license.\" statement..\".ad l.nh.SH NAMEQFontInfo \- General information about fonts.SH SYNOPSIS.br.PP\fC#include <qfontinfo.h>\fR.PP.SS "Public Members".in +1c.ti -1c.BI "\fBQFontInfo\fR ( const QFont & )".br.ti -1c.BI "\fBQFontInfo\fR ( const QFontInfo & )".br.ti -1c.BI "\fB~QFontInfo\fR ()".br.ti -1c.BI "QFontInfo& \fBoperator=\fR ( const QFontInfo & )".br.ti -1c.BI "QString \fBfamily\fR () const".br.ti -1c.BI "int \fBpointSize\fR () const".br.ti -1c.BI "bool \fBitalic\fR () const".br.ti -1c.BI "int \fBweight\fR () const".br.ti -1c.BI "bool \fBbold\fR () const".br.ti -1c.BI "bool \fBunderline\fR () const".br.ti -1c.BI "bool \fBstrikeOut\fR () const".br.ti -1c.BI "bool \fBfixedPitch\fR () const".br.ti -1c.BI "QFont::StyleHint \fBstyleHint\fR () const".br.ti -1c.BI "QFont::CharSet \fBcharSet\fR () const".br.ti -1c.BI "bool \fBrawMode\fR () const".br.ti -1c.BI "bool \fBexactMatch\fR () const".br.in -1c.SH DESCRIPTIONThe QFontInfo class provides general information about fonts..PPThe QFont class might not always map exactly to the specified font for a paint device. The QFontInfo class provides information of the actual font that matched a QFont specification..PPThere are three ways you can create a QFontInfo object:.IP 1The QFontInfo constructor with a QFont creates a font info object for a screen-compatible font, i.e. the font must not be a printer font..IP 2QWidget::fontInfo() returns the font info for a widget's font. This is equivalent to QFontInfo(widget->font()). Setting a new font for the widget later will not affect the font info object..IP 3QPainter::fontInfo() returns the font info for a painter's current font. The font info object is automatically updated if somebody sets a new painter font (unlike the two above cases, which take a "snapshot" of a font)..PPExample:.PP.nf.br    QFont font("reykjavik",24);.br    QFontInfo fi(font);.br    if ( font.family() == fi.family() ) {.br        ; // got this font.br    } else {.br        ; // got fi.family() instead.br    }.fi.PPSee also: QFont and QFontMetrics..SH MEMBER FUNCTION DOCUMENTATION.SH "QFontInfo::QFontInfo ( const QFont & font )"Constructs a font info object for \fIfont.\fR.PPThe font must be screen-compatible, i.e. a font you use when drawing text in widgets or pixmaps. If \fIfont\fR is a printer font, you'll probably get wrong results..PPUse the QPainter::fontInfo() to get the font info when painting. This is a little slower than using this constructor, but it always gives correct results..SH "QFontInfo::QFontInfo ( const QFontInfo & fi )"Constructs a copy of \fIfi.\fR.SH "QFontInfo::~QFontInfo ()"Destroys the font info object..SH "bool QFontInfo::bold () const"Returns TRUE if weight() would return a greater than \fCQFont::Normal,\fR and FALSE otherwise..PPSee also: weight() and QFont::bold()..SH "QFont::CharSet QFontInfo::charSet() const"Returns the character set of the matched window system font..PPSee also: QFont::charSet()..SH "bool QFontInfo::exactMatch () const"Returns TRUE if the matched window system font is exactly the one specified by the font..PPSee also: QFont::exactMatch()..SH "QString QFontInfo::family () const"Returns the family name of the matched window system font..PPSee also: QFont::family()..SH "bool QFontInfo::fixedPitch () const"Returns the fixed pitch value of the matched window system font. A fixed pitch font is a font that has constant character pixel width..PPSee also: QFont::fixedPitch()..SH "bool QFontInfo::italic () const"Returns the italic value of the matched window system font..PPSee also: QFont::italic()..SH "QFontInfo & QFontInfo::operator= ( const QFontInfo & fi )"Font info assignment..SH "int QFontInfo::pointSize () const"Returns the point size of the matched window system font..PPSee also: QFont::pointSize()..SH "bool QFontInfo::rawMode () const"Returns TRUE if the font is a raw mode font..PPIf it is a raw mode font, all other functions in QFontInfo will return the same values set in the QFont, regardless of the font actually used..PPSee also: QFont::rawMode()..SH "bool QFontInfo::strikeOut () const"Returns the strike out value of the matched window system font..PPSee also: QFont::strikeOut()..SH "QFont::StyleHint QFontInfo::styleHint() const"Returns the style of the matched window system font..PPCurrently only returns the hint set in QFont..PPSee also: QFont::styleHint()..SH "bool QFontInfo::underline () const"Returns the underline value of the matched window system font..PPSee also: QFont::underline()..SH "int QFontInfo::weight () const"Returns the weight of the matched window system font..PPSee also:  QFont::weight() and bold()..SH "SEE ALSO".BR http://www.troll.no/qt/qfontinfo.html.SH COPYRIGHTCopyright 1992-1999 Troll Tech AS.  See the license file included inthe distribution for a complete license statement..SH AUTHORGenerated automatically from the source code.

⌨️ 快捷键说明

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