SVN_SILENT made messages (.desktop file)
[kdegraphics.git] / okular / generators / dvi / TeXFont_PK.h
blob805d8a92713b5e46805eecba30068e368ff0a17d
1 // -*- Mode: C++; c-basic-offset: 2; indent-tabs-mode: nil; c-brace-offset: 0; -*-
3 #ifndef _TEXFONT_PK_H
4 #define _TEXFONT_PK_H
6 #include "TeXFont.h"
8 class glyph;
11 class TeXFont_PK : public TeXFont {
12 public:
13 TeXFont_PK(TeXFontDefinition *parent);
14 ~TeXFont_PK();
16 glyph* getGlyph(quint16 character, bool generateCharacterPixmap=false, const QColor& color=Qt::black);
18 private:
19 // open font file or NULL
20 FILE* file;
22 struct bitmap *characterBitmaps[TeXFontDefinition::max_num_of_chars_in_font];
24 // For use by PK-decryption routines. I don't understand what these
25 // are good for -- Stefan Kebekus
26 int PK_flag_byte;
27 unsigned int PK_input_byte;
28 int PK_bitpos;
29 int PK_dyn_f;
30 int PK_repeat_count;
32 // PK-internal routines which were taken from xdvi. Again, I do not
33 // really know what they are good for -- Stefan Kebekus
34 inline void read_PK_char(unsigned int ch);
35 inline int PK_get_nyb(FILE *fp);
36 inline int PK_packed_num(FILE *fp);
37 inline void read_PK_index();
38 inline void PK_skip_specials();
41 #endif