This is the verbatim text of the qfontinf.h include file. It is is provided only for illustration; the copyright remains with Troll Tech.
/**************************************************************************** ** $Id: qfontinf.h,v 2.0 1996/09/24 10:15:52 agulbra Exp $ ** ** Definition of QFontInfo class ** ** Created : 950131 ** ** Copyright (C) 1995-1996 by Troll Tech AS. All rights reserved. ** *****************************************************************************/ #ifndef QFONTINF_H #define QFONTINF_H #include "qfont.h" class QFontInfo { public: QFontInfo( const QFontInfo & ); ~QFontInfo(); QFontInfo &operator=( const QFontInfo & ); const char *family() const; int pointSize() const; bool italic() const; int weight() const; bool bold() const; bool underline() const; bool strikeOut() const; bool fixedPitch() const; QFont::StyleHint styleHint() const; QFont::CharSet charSet() const; bool rawMode() const; bool exactMatch() const; const QFont &font() const; private: QFontInfo( const QWidget * ); QFontInfo( const QPainter * ); static void reset( const QWidget * ); static void reset( const QPainter * ); QWidget *w; QPainter *p; friend class QWidget; friend class QPainter; }; inline bool QFontInfo::bold() const { return weight() > QFont::Normal; } #endif // QFONTINF_H