SVN_SILENT made messages (.desktop file)
[kdegraphics.git] / okular / generators / dvi / TeXFont.h
blob4b89e86654afd8e949bceb52d6d767925b2cee89
1 // -*- Mode: C++; c-basic-offset: 2; indent-tabs-mode: nil; c-brace-offset: 0; -*-
2 // TeXFont.h
3 //
4 // Part of KDVI - A DVI previewer for the KDE desktop environment
5 //
6 // (C) 2003 Stefan Kebekus
7 // Distributed under the GPL
9 #ifndef _TEXFONT_H
10 #define _TEXFONT_H
12 #include "glyph.h"
13 #include "TeXFontDefinition.h"
16 class TeXFont {
17 public:
18 TeXFont(TeXFontDefinition *_parent)
20 parent = _parent;
21 errorMessage.clear();
24 virtual ~TeXFont();
26 void setDisplayResolution()
28 for(unsigned int i=0; i<TeXFontDefinition::max_num_of_chars_in_font; i++)
29 glyphtable[i].shrunkenCharacter = QImage();
32 virtual glyph* getGlyph(quint16 character, bool generateCharacterPixmap=false, const QColor& color=Qt::black) = 0;
34 // Checksum of the font. Used e.g. by PK fonts. This field is filled
35 // in by the constructor, or set to 0.0, if the font format does not
36 // contain checksums.
37 quint32 checksum;
39 // If the font or if some glyphs could not be loaded, error messages
40 // will be put here.
41 QString errorMessage;
43 protected:
44 glyph glyphtable[TeXFontDefinition::max_num_of_chars_in_font];
45 TeXFontDefinition *parent;
48 #endif