3 #ifndef PK_FONT_HEADER_READ 
    4 #define PK_FONT_HEADER_READ 1 
   27                  const Byte *rasterdata, 
unsigned int len,
 
   28                  unsigned int w, 
unsigned int h);
 
   35         { 
if (bitmap_ == 0) construct_bitmap(); 
return bitmap_; }
 
   47     Byte *rasterdata_, *eob_;
 
   48     const unsigned int len_, w_, h_;
 
   53     unsigned int repeatcount_;
 
   54     unsigned int unpackpk();
 
   56     void construct_bitmap ();
 
   63             unsigned int tfmwidth,  
unsigned int dm,
 
   64             unsigned int w, 
unsigned int h,
 
   68             unsigned int tfmwidth, 
unsigned int dx, 
unsigned int dy,
 
   69             unsigned int w, 
unsigned int h,
 
   83         { 
return (cc_ >= 
' ' && cc_ < 127 
 
   84                   ? static_cast<char>(cc_) : 
'?'); }
 
   92     inline unsigned int w()
 const { 
return w_; }
 
   98     inline unsigned int h()
 const { 
return h_; }
 
  109     inline int hoff()
 const { 
return -hoff_; }
 
  122     inline int voff()
 const { 
return -voff_; }
 
  150     unsigned int cc_, dx_, dy_, w_, h_;
 
  158     static const int two20_ = 1048576;  
 
  159     static const int two16_ = 65536; 
 
  179                 throw DviBug (
"requested out-of-range glyph");
 
  224     string name()
 const { 
return name_; }
 
  246         return static_cast<int>(resolution_
 
  263         return (
double)font_header_.s / (double)font_header_.d;
 
  291     double quad()
 const { 
return quad_; }
 
  307     double hppp()
 const { 
return preamble_.hppp; }
 
  313     double vppp()
 const { 
return preamble_.vppp; }
 
  318     unsigned int checksum()
 const { 
return preamble_.cs; }
 
  325     bool loaded()
 const { 
return font_loaded_; }
 
  329                                            const string fontname,
 
  337     static const unsigned int nglyphs_ = 256;
 
  338     static const unsigned int two20_ = 1048576; 
 
  339     static const unsigned int two16_ = 65536; 
 
  359     double quad_, word_space_, back_space_;
 
  361     bool find_font (
string&);
 
  366     string& search_pkpath (
string path,
 
  373     static string fontSearchPath_;      
 
  374     static string fontSearchCommandTemplate_; 
 
  375     static string fontgenCommandTemplate_; 
 
  376     static void setFontSearchStrategy_(
unsigned int, 
bool);
 
  377     static unsigned int fontSearchStrategies_; 
 
  378     static const unsigned int fontSearchStrategyPath_ = 1;
 
  379     static const unsigned int fontSearchStrategyKpse_ = 2;
 
  380     static const unsigned int fontSearchStrategyCommand_ = 4;
 
  382     static int resolution_;     
 
  383     static bool makeMissingFonts_;      
 
  384     static string missingFontMode_;
 
  387 #endif // #ifndef PK_FONT_HEADER_READ