4 #include "dl-loader.hh"
5 #include "dl-refcounted.hh"
20 class PkChar : public AbstractCharacter
23 bool first_is_black; // if first run count is black or white
25 int tfm_width; // in what units? FIXME
26 uint dx; // escapement - what is this? FIXME
28 uint width; // in pixels
29 uint height; // in pixels
35 unsigned char *bitmap; // 32 bit/pixel ARGB format
36 unsigned char *packed;
39 CountType get_count (RleContext& nr, uint *count);
40 void unpack_rle (RleContext& nr);
41 void unpack_bitmap (void);
45 PkChar (AbstractLoader &l);
46 virtual void paint (DviRuntime &runtime);
47 const unsigned char *get_bitmap (void)
57 uint get_height (void)
61 virtual int get_tfm_width (void)
65 int get_hoffset (void)
69 int get_voffset (void)
73 int get_character_code (void) { return character_code; }
76 class PkFont : public AbstractFont {
77 AbstractLoader& loader;
82 uint hppp; /* horizontal pixels per point */
83 uint vppp; /* vertical pixels per point */
84 map <uint, PkChar *> chars;
88 PkFont (AbstractLoader& l);
89 PkFont (AbstractLoader& l, int at_size);
90 virtual PkChar *get_char (int ccode)
94 virtual int get_design_size (void)
98 virtual int get_at_size (void)
102 virtual ~PkFont () {}
106 #endif /* DL_PKFONT_HH__ */