| 1 |
/* Copyright (C) 1992-1998 The Geometry Center |
| 2 |
* Copyright (C) 1998-2000 Stuart Levy, Tamara Munzner, Mark Phillips |
| 3 |
* |
| 4 |
* This file is part of Geomview. |
| 5 |
* |
| 6 |
* Geomview is free software; you can redistribute it and/or modify it |
| 7 |
* under the terms of the GNU Lesser General Public License as published |
| 8 |
* by the Free Software Foundation; either version 2, or (at your option) |
| 9 |
* any later version. |
| 10 |
* |
| 11 |
* Geomview is distributed in the hope that it will be useful, but |
| 12 |
* WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 14 |
* Lesser General Public License for more details. |
| 15 |
* |
| 16 |
* You should have received a copy of the GNU Lesser General Public |
| 17 |
* License along with Geomview; see the file COPYING. If not, write |
| 18 |
* to the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, |
| 19 |
* USA, or visit http://www.gnu.org. |
| 20 |
*/ |
| 21 |
#ifndef _QV_FONT_STYLE_ |
| 22 |
#define _QV_FONT_STYLE_ |
| 23 |
|
| 24 |
#include <QvSFBitMask.h> |
| 25 |
#include <QvSFEnum.h> |
| 26 |
#include <QvSFFloat.h> |
| 27 |
#include <QvSubNode.h> |
| 28 |
|
| 29 |
class QvFontStyle : public QvNode { |
| 30 |
|
| 31 |
QV_NODE_HEADER(QvFontStyle); |
| 32 |
|
| 33 |
public: |
| 34 |
|
| 35 |
enum Family { // Font family: |
| 36 |
SERIF, // Serif style (such as TimesRoman) |
| 37 |
SANS, // Sans-serif style (such as Helvetica) |
| 38 |
TYPEWRITER // Fixed pitch style (such as Courier) |
| 39 |
}; |
| 40 |
|
| 41 |
enum Style { // Font style modifications: |
| 42 |
NONE = 0x00, // No modifications to family |
| 43 |
BOLD = 0x01, // Embolden family |
| 44 |
ITALIC = 0x02 // Italicize or slant family |
| 45 |
}; |
| 46 |
|
| 47 |
// Fields |
| 48 |
QvSFFloat size; // Font size |
| 49 |
QvSFEnum family; // Font family |
| 50 |
QvSFBitMask style; // Font style modifications to family |
| 51 |
}; |
| 52 |
|
| 53 |
#endif /* _QV_FONT_STYLE_ */ |