mirror of
https://invent.kde.org/graphics/okular
synced 2024-10-13 11:22:24 +00:00
4db54de9c2
Patch by Angus Leeming svn path=/trunk/KDE/kdegraphics/kdvi/; revision=466960
46 lines
981 B
C++
46 lines
981 B
C++
// -*- 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
|
|
|
|
#include <../config.h>
|
|
#ifdef HAVE_FREETYPE
|
|
|
|
#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
|
|
#endif // HAVE_FREETYPE
|