Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/dvi/dvilib/dl-pkfont.hh
diff options
context:
space:
mode:
authorNickolay V. Shmyrev <nshmyrev@yandex.ru>2005-04-07 15:28:06 (GMT)
committer Nickolay V. Shmyrev <nshmyrev@src.gnome.org>2005-04-07 15:28:06 (GMT)
commitc3e1500a4815225f08e1b20dd066559e8c92c280 (patch)
tree7474fe16fce807cda4845df116fec07c60b161e6 /dvi/dvilib/dl-pkfont.hh
parent52f67b9ce7a9f2282b2c85139d1d10f8c4df5786 (diff)
Recent files support.
2005-04-07 Nickolay V. Shmyrev <nshmyrev@yandex.ru> * cut-n-paste/recent-files/Makefile.am: * data/evince-ui.xml, shell/Makefile.am: * shell/ev-application.c, shell/ev-application.h: * shell/ev-window.c: Recent files support. * configure.ac: Added "ru" to ALL_LINGUAS. * dvju: new backend to support DJVU files. * dvi: new backend to support DVI. * configure.ac, Makefile.am, shell/Makefile.am, ev-window.c: * ev-application.c: Support for new backends. * help, ev-window.c, main.c shell/Makefile.am:
Diffstat (limited to 'dvi/dvilib/dl-pkfont.hh')
-rwxr-xr-xdvi/dvilib/dl-pkfont.hh106
1 files changed, 0 insertions, 106 deletions
diff --git a/dvi/dvilib/dl-pkfont.hh b/dvi/dvilib/dl-pkfont.hh
deleted file mode 100755
index ec09148..0000000
--- a/dvi/dvilib/dl-pkfont.hh
+++ /dev/null
@@ -1,106 +0,0 @@
-#ifndef DL_PKFONT_HH__
-#define DL_PKFONT_HH__
-
-#include "dl-loader.hh"
-#include "dl-refcounted.hh"
-#include "dl-font.hh"
-
-#include <vector>
-#include <map>
-
-namespace DviLib {
-
- class RleContext;
-
- enum CountType {
- RUN_COUNT,
- REPEAT_COUNT
- };
-
- class PkChar : public AbstractCharacter
- {
- uint dyn_f;
- bool first_is_black; // if first run count is black or white
- int character_code;
- int tfm_width; // in what units? FIXME
- uint dx; // escapement - what is this? FIXME
- uint dy;
- uint width; // in pixels
- uint height; // in pixels
- int hoffset;
- int voffset;
-
- bool unpacked;
- union {
- unsigned char *bitmap; // 32 bit/pixel ARGB format
- unsigned char *packed;
- } data;
-
- CountType get_count (RleContext& nr, uint *count);
- void unpack_rle (RleContext& nr);
- void unpack_bitmap (void);
- void unpack (void);
-
- public:
- PkChar (AbstractLoader &l);
- virtual void paint (DviRuntime &runtime);
- const unsigned char *get_bitmap (void)
- {
- if (!unpacked)
- unpack ();
- return data.bitmap;
- }
- uint get_width (void)
- {
- return width;
- }
- uint get_height (void)
- {
- return height;
- }
- virtual int get_tfm_width (void)
- {
- return tfm_width;
- }
- int get_hoffset (void)
- {
- return hoffset;
- }
- int get_voffset (void)
- {
- return voffset;
- }
- int get_character_code (void) { return character_code; }
- };
-
- class PkFont : public AbstractFont {
- AbstractLoader& loader;
- uint id;
- string comment;
- uint design_size;
- uint checksum;
- uint hppp; /* horizontal pixels per point */
- uint vppp; /* vertical pixels per point */
- map <uint, PkChar *> chars;
- int at_size;
- void load (void);
- public:
- PkFont (AbstractLoader& l);
- PkFont (AbstractLoader& l, int at_size);
- virtual PkChar *get_char (int ccode)
- {
- return chars[ccode];
- }
- virtual int get_design_size (void)
- {
- return design_size;
- }
- virtual int get_at_size (void)
- {
- return at_size;
- }
- virtual ~PkFont () {}
- };
-}
-
-#endif /* DL_PKFONT_HH__ */