Back to index

texmacs  1.0.7.15
Public Member Functions | Public Attributes
pk_font_glyphs_rep Struct Reference
Inheritance diagram for pk_font_glyphs_rep:
Inheritance graph
[legend]
Collaboration diagram for pk_font_glyphs_rep:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 pk_font_glyphs_rep (string name, pk_loader *)
glyphget (int char_code)

Public Attributes

pk_loaderpkl
int bc
int ec
glyphfng
bool bad_font_glyphs
string res_name

Detailed Description

Definition at line 143 of file load_tex.cpp.


Constructor & Destructor Documentation

Definition at line 152 of file load_tex.cpp.

  :font_glyphs_rep (name), pkl (pkl2)
{
  if (pkl) {
    fng = pkl->load_pk ();
    bc = pkl->tfm->bc;
    ec = pkl->tfm->ec;
  }
  else {
    fng = 0;
    bc = 0;
    ec = -1;
  }
}

Here is the call graph for this function:


Member Function Documentation

glyph & pk_font_glyphs_rep::get ( int  char_code) [virtual]

Implements font_glyphs_rep.

Definition at line 168 of file load_tex.cpp.

{
  if ((c<bc) || (c>ec)) return error_glyph;
  if (pkl && !pkl->unpacked[c-bc]) {
    pkl->input_pos = pkl->char_pos[c-bc];
    pkl->flagbyte  = pkl->char_flag[c-bc];
    pkl->unpack(fng[c-bc]);

    pkl->unpacked[c-bc] = true;
  }
  return fng [c-bc];
}

Here is the call graph for this function:


Member Data Documentation

Definition at line 100 of file bitmap_font.hpp.

Definition at line 145 of file load_tex.cpp.

Definition at line 145 of file load_tex.cpp.

Definition at line 146 of file load_tex.cpp.

Definition at line 144 of file load_tex.cpp.

string rep< font_glyphs >::res_name [inherited]

Definition at line 17 of file resource.hpp.


The documentation for this struct was generated from the following file: