Logo Search packages:      
Sourcecode: qt4-x11 version File versions  Download package

void QFont::setFamily ( const QString family )

Sets the family name of the font. The name is case insensitive and may include a foundry name.

The family name may optionally also include a foundry name, e.g. "Helvetica [Cronyx]". If the family is available from more than one foundry and the foundry isn't specified, an arbitrary foundry is chosen. If the family isn't available a family will be set using the {QFont}{font matching} algorithm.

See also:
family(), setStyleHint(), QFontInfo

Definition at line 862 of file qfont.cpp.

References detach(), and family().

Referenced by fromString(), QFontFamilyDelegate::paint(), QWindowsVistaStyle::polish(), setRawName(), MainWindow::setupEditor(), QWindowsVistaStyle::unpolish(), and CharacterWidget::updateFont().


    d->request.family = family;
#if defined(Q_WS_X11)
#endif // Q_WS_X11

    resolve_mask |= QFont::FamilyResolved;

Here is the call graph for this function:

Here is the caller graph for this function:

Generated by  Doxygen 1.6.0   Back to index