okular/generators/dvi/TeXFont_PFB.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

42 lines
1 KiB
C
Raw Normal View History

// -*- Mode: C++; c-basic-offset: 2; indent-tabs-mode: nil; c-brace-offset: 0; -*-
// TeXFont_PFB.h
//
// Part of KDVI - A DVI previewer for the KDE desktop environment
//
2021-05-24 07:25:56 +00:00
// SPDX-FileCopyrightText: 2003 Stefan Kebekus
2021-05-24 12:00:50 +00:00
// SPDX-License-Identifier: GPL-2.0-or-later
// 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:
explicit TeXFont_PFB(TeXFontDefinition *parent, fontEncoding *enc = nullptr, double slant = 0.0);
~TeXFont_PFB() override;
2017-03-02 19:38:50 +00:00
glyph *getGlyph(quint16 character, bool generateCharacterPixmap = false, const QColor &color = Qt::black) override;
private:
FT_Face face;
bool fatalErrorInFontLoading;
quint16 charMap[256];
// This matrix is used internally to describes the slant, if
// nonzero. Otherwise, this is undefined.
FT_Matrix transformationMatrix;
};
#endif