Back to index

Public Member Functions | Public Attributes
std_font_metric_rep Struct Reference
Inheritance diagram for std_font_metric_rep:
Inheritance graph
Collaboration diagram for std_font_metric_rep:
Collaboration graph

List of all members.

Public Member Functions

 std_font_metric_rep (string name, metric *fnm, int bc, int ec)
metricget (int char_code)

Public Attributes

int bc
int ec
bool bad_font_metric
string res_name

Detailed Description

Definition at line 33 of file bitmap_font.cpp.

Constructor & Destructor Documentation

std_font_metric_rep::std_font_metric_rep ( string  name,
metric fnm,
int  bc,
int  ec 

Definition at line 41 of file bitmap_font.cpp.

    font_metric_rep (name), bc (bc2), ec (ec2), fnm (fnm2)
  error_metric->x1= error_metric->y1= 0;
  error_metric->x2= error_metric->y2= 0;
  error_metric->x3= error_metric->y3= 0;
  error_metric->x4= error_metric->y4= 0;

Member Function Documentation

metric & std_font_metric_rep::get ( int  char_code) [virtual]

Implements font_metric_rep.

Definition at line 52 of file bitmap_font.cpp.

  if ((c<bc) || (c>ec)) return error_metric;
  return fnm [c-bc];

Member Data Documentation

Definition at line 93 of file bitmap_font.hpp.

Definition at line 34 of file bitmap_font.cpp.

Definition at line 34 of file bitmap_font.cpp.

Definition at line 35 of file bitmap_font.cpp.

string rep< font_metric >::res_name [inherited]

Definition at line 17 of file resource.hpp.

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