You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdegraphics/kdvi/TeXFont_PFB.h

42 lines
916 B

// -*- 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(TQ_UINT16 character, bool generateCharacterPixmap=false, const TQColor& color=TQt::black);
private:
FT_Face face;
bool fatalErrorInFontLoading;
TQ_UINT16 charMap[256];
// This matrix is used internally to describes the slant, if
// nonzero. Otherwise, this is undefined.
FT_Matrix transformationMatrix;
};
#endif