This is the verbatim text of the qfontmet.h include file. It is is provided only for illustration; the copyright remains with Troll Tech.
/****************************************************************************
** $Id: qfontmet.h,v 1.12 1995/05/16 18:59:35 agulbra Exp $
**
** Definition of QFontMetrics class
**
** Author : Eirik Eng
** Created : 940514
**
** Copyright (C) 1994,1995 by Troll Tech AS. All rights reserved.
**
*****************************************************************************/
#ifndef QFONTMET_H
#define QFONTMET_H
#include "qfont.h"
#include "qrect.h"
class QFontMetrics
{
public:
QFontMetrics( const QFont & );
int ascent() const;
int descent() const;
int height() const;
int leading() const;
int lineSpacing() const;
int width( const char *, int len = -1 ) const;
int width( char ) const;
QRect boundingRect( const char *, int len = -1 ) const;
QRect boundingRect( char ) const;
int maxWidth() const;
int underlinePos() const;
int strikeOutPos() const;
int lineWidth() const;
void setFont( const QFont & );
const QFont &font() const;
private:
QFont f;
};
#endif // QFONTMET_H