1 // -*- Mode: C++; c-basic-offset: 2; indent-tabs-mode: nil; c-brace-offset: 0; -*-
4 // Part of KDVI - A DVI previewer for the KDE desktop environment
6 // (C) 2003 Stefan Kebekus
7 // Distributed under the GPL
10 #define _TEXFONT_TFM_H
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));}
24 class TeXFont_TFM
: public TeXFont
{
26 TeXFont_TFM(TeXFontDefinition
*parent
);
29 glyph
* getGlyph(quint16 character
, bool generateCharacterPixmap
=false, const QColor
& color
=Qt::black
);
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
;