4 #include "dl-loader.hh"
5 #include "dl-refcounted.hh"
20 class PkChar : public AbstractCharacter {
22 bool first_is_black; // if first run count is black or white
24 int tfm_width; // in what units? FIXME
25 uint dx; // escapement - what is this? FIXME
27 uint width; // in pixels
28 uint height; // in pixels
34 unsigned char *bitmap; // 32 bit/pixel ARGB format
35 unsigned char *packed;
38 CountType get_count (RleContext& nr, uint *count);
39 void unpack_rle (RleContext& nr);
40 void unpack_bitmap (void);
43 PkChar (AbstractLoader &l);
44 virtual void paint (DviRuntime &runtime);
45 const unsigned char *get_bitmap (void)
55 uint get_height (void)
59 virtual int get_tfm_width (void)
63 int get_hoffset (void)
67 int get_voffset (void)
71 int get_character_code (void) { return character_code; }
74 class PkFont : public AbstractFont {
75 AbstractLoader& loader;
80 uint hppp; /* horizontal pixels per point */
81 uint vppp; /* vertical pixels per point */
82 map <uint, PkChar *> chars;
86 PkFont (AbstractLoader& l);
87 PkFont (AbstractLoader& l, int at_size);
88 virtual PkChar *get_char (int ccode)
92 virtual int get_design_size (void)
96 virtual int get_at_size (void)
100 virtual ~PkFont () {}
104 #endif /* DL_PKFONT_HH__ */