Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

PkFontFile Class Reference

#include <pkFontFile.h>

Inheritance diagram for PkFontFile:

FontFile List of all members.

Public Member Functions

 PkFontFile ()
virtual bool read (const Filename &filename, bool extract_all, const string &extract_only)

Private Member Functions

unsigned int fetch_nibble ()
unsigned int fetch_packed_int ()
unsigned int fetch_byte ()
unsigned int fetch_int (int n=4)
int fetch_signed_int (int n=4)
bool do_character (int flag_byte)
void do_xxx (int num_bytes)
void do_yyy ()
void do_post ()
void do_pre ()
bool read_pk ()

Private Attributes

bool _post
bool _post_warning
int _p
bool _high
int _dyn_f
int _repeat_count
bool _extract_all
string _extract_only
pvector< unsigned char > _pk

Constructor & Destructor Documentation

PkFontFile::PkFontFile  ) 
 

Definition at line 501 of file pkFontFile.cxx.


Member Function Documentation

bool PkFontFile::do_character int  flag_byte  )  [private]
 

Definition at line 658 of file pkFontFile.cxx.

References CharBitmap::_block, FontFile::_chars, _dyn_f, _extract_all, _extract_only, _high, _p, _repeat_count, count, fetch_byte(), fetch_int(), fetch_packed_int(), fetch_signed_int(), nout, CharBitmap::paint(), w, x, and y.

Referenced by read_pk().

void PkFontFile::do_post  )  [private]
 

Definition at line 807 of file pkFontFile.cxx.

References _post.

Referenced by read_pk().

void PkFontFile::do_pre  )  [private]
 

Definition at line 817 of file pkFontFile.cxx.

References FontFile::_ds, FontFile::_hppp, _p, _pk, FontFile::_vppp, assert, fetch_byte(), fetch_int(), FontFile::get_dpi(), FontFile::get_ds(), id, and nout.

Referenced by read_pk().

void PkFontFile::do_xxx int  num_bytes  )  [private]
 

Definition at line 785 of file pkFontFile.cxx.

References _p, and fetch_int().

Referenced by read_pk().

void PkFontFile::do_yyy  )  [private]
 

Definition at line 797 of file pkFontFile.cxx.

References _p.

Referenced by read_pk().

unsigned int PkFontFile::fetch_byte  )  [private]
 

Definition at line 601 of file pkFontFile.cxx.

References _high, _p, _pk, and assert.

Referenced by do_character(), do_pre(), and read_pk().

unsigned int PkFontFile::fetch_int int  n = 4  )  [private]
 

Definition at line 614 of file pkFontFile.cxx.

References _high, _p, _pk, assert, and n.

Referenced by do_character(), do_pre(), and do_xxx().

unsigned int PkFontFile::fetch_nibble  )  [private]
 

Definition at line 546 of file pkFontFile.cxx.

References _high, _p, _pk, and assert.

Referenced by fetch_packed_int().

unsigned int PkFontFile::fetch_packed_int  )  [private]
 

Definition at line 564 of file pkFontFile.cxx.

References _dyn_f, _repeat_count, and fetch_nibble().

Referenced by do_character().

int PkFontFile::fetch_signed_int int  n = 4  )  [private]
 

Definition at line 634 of file pkFontFile.cxx.

References _high, _p, _pk, assert, and n.

Referenced by do_character().

bool PkFontFile::read const Filename filename,
bool  extract_all,
const string &  extract_only
[virtual]
 

Implements FontFile.

Definition at line 512 of file pkFontFile.cxx.

References _extract_all, _extract_only, _high, _p, _pk, _post, _post_warning, c, Filename::open_read(), read_pk(), and Filename::set_binary().

bool PkFontFile::read_pk  )  [private]
 

Definition at line 850 of file pkFontFile.cxx.

References _p, _pk, _post, _post_warning, do_character(), do_post(), do_pre(), do_xxx(), do_yyy(), fetch_byte(), nout, PK_NO_OP, PK_POST, PK_PRE, PK_XXX1, PK_XXX2, PK_XXX3, PK_XXX4, and PK_YYY.

Referenced by read().


Member Data Documentation

int PkFontFile::_dyn_f [private]
 

Definition at line 55 of file pkFontFile.h.

Referenced by do_character(), and fetch_packed_int().

bool PkFontFile::_extract_all [private]
 

Definition at line 58 of file pkFontFile.h.

Referenced by do_character(), and read().

string PkFontFile::_extract_only [private]
 

Definition at line 59 of file pkFontFile.h.

Referenced by do_character(), and read().

bool PkFontFile::_high [private]
 

Definition at line 54 of file pkFontFile.h.

Referenced by do_character(), fetch_byte(), fetch_int(), fetch_nibble(), fetch_signed_int(), and read().

int PkFontFile::_p [private]
 

Definition at line 53 of file pkFontFile.h.

Referenced by do_character(), do_pre(), do_xxx(), do_yyy(), fetch_byte(), fetch_int(), fetch_nibble(), fetch_signed_int(), read(), and read_pk().

pvector<unsigned char> PkFontFile::_pk [private]
 

Definition at line 61 of file pkFontFile.h.

Referenced by do_pre(), fetch_byte(), fetch_int(), fetch_nibble(), fetch_signed_int(), read(), and read_pk().

bool PkFontFile::_post [private]
 

Definition at line 51 of file pkFontFile.h.

Referenced by do_post(), read(), and read_pk().

bool PkFontFile::_post_warning [private]
 

Definition at line 52 of file pkFontFile.h.

Referenced by read(), and read_pk().

int PkFontFile::_repeat_count [private]
 

Definition at line 56 of file pkFontFile.h.

Referenced by do_character(), and fetch_packed_int().


The documentation for this class was generated from the following files:
Generated on Fri Apr 18 01:01:21 2003 for Panda-Tool by doxygen1.3