blob: 68211cdb989a9764e84b6d9cc4ff73dbb8bf176e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
// -*- C++ -*-
// TeXFont_PFB.cpp
//
// Part of KDVI - A DVI previewer for the KDE desktop environemt
//
// (C) 2003 Stefan Kebekus
// Distributed under the GPL
// This file is compiled only if the FreeType library is present on
// the system
#ifndef _TEXFONT_PFB_H
#define _TEXFONT_PFB_H
#include "TeXFont.h"
#include <ft2build.h>
#include FT_FREETYPE_H
class fontEncoding;
class glyph;
class TeXFont_PFB : public TeXFont {
public:
TeXFont_PFB(TeXFontDefinition *parent, fontEncoding *enc=0, double slant=0.0 );
~TeXFont_PFB();
glyph* getGlyph(Q_UINT16 character, bool generateCharacterPixmap=false, const QColor& color=Qt::black);
private:
FT_Face face;
bool fatalErrorInFontLoading;
Q_UINT16 charMap[256];
// This matrix is used internally to describes the slant, if
// nonzero. Otherwise, this is undefined.
FT_Matrix transformationMatrix;
};
#endif
|