SVN_SILENT made messages (.desktop file)
[kdegraphics.git] / okular / generators / dvi / TeXFont_TFM.h
blobb86bb7aaf22e303380f9a8f021bde4474cf9026e
1 // -*- Mode: C++; c-basic-offset: 2; indent-tabs-mode: nil; c-brace-offset: 0; -*-
2 // TeXFont_TFM.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_TFM_H
10 #define _TEXFONT_TFM_H
12 #include "TeXFont.h"
15 class fix_word {
16 public:
17 void fromINT32(qint32 val) {value = val;}
18 void fromDouble(double val) {value = (qint32)(val * (1<<20) + 0.5);}
19 double toDouble() {return (double(value)) / (double(1<<20));}
21 qint32 value;
24 class TeXFont_TFM : public TeXFont {
25 public:
26 TeXFont_TFM(TeXFontDefinition *parent);
27 ~TeXFont_TFM();
29 glyph* getGlyph(quint16 character, bool generateCharacterPixmap=false, const QColor& color=Qt::black);
31 private:
32 fix_word characterWidth_in_units_of_design_size[256];
33 fix_word characterHeight_in_units_of_design_size[256];
35 fix_word design_size_in_TeX_points;
38 #endif