43 static const char*
TYPENAME() {
return "Font"; }
67 Font(
const char* name);
70 bool Load(
const char* name);
74 int KernWidth(
char left,
char right)
const;
77 void DrawText(
const char* txt,
int count,
Rect& txt_rect, DWORD flags,
Bitmap* tgt_bitmap=0);
78 int DrawString(
const char* txt,
int len,
int x1,
int y1,
const Rect& clip,
Bitmap* tgt_bitmap=0);
80 int Height()
const {
return height; }
93 void SetKern(
char left,
char right,
int k=0);
100 void FindEdges(BYTE c,
double* l,
double* r);
101 int CalcWidth(BYTE c)
const;
102 int GlyphOffset(BYTE c)
const;
103 int GlyphLocationX(BYTE c)
const;
104 int GlyphLocationY(BYTE c)
const;
106 void DrawTextSingle(
const char* txt,
int count,
const Rect& txt_rect,
Rect& clip_rect, DWORD flags);
107 void DrawTextWrap(
const char* txt,
int count,
const Rect& txt_rect,
Rect& clip_rect, DWORD flags);
108 void DrawTextMulti(
const char* txt,
int count,
const Rect& txt_rect,
Rect& clip_rect, DWORD flags);
110 void LoadDef(
char* defname,
char* imgname);