23 #ifndef _LAX_FONTMANAGER_H
24 #define _LAX_FONTMANAGER_H
27 #include <lax/anobject.h>
37 unsigned long textstyle;
41 LaxFont(
const char *fontconfigstr,
int nid);
42 LaxFont(
const char *family,
const char *style,
double size,
int nid);
44 virtual int laxfid() {
return id; }
46 virtual double charwidth(
unsigned long chr,
int real,
double *width=NULL,
double *height=NULL) = 0;
47 virtual double contextcharwidth(
char *start,
char *pos,
int real,
double *width=NULL,
double *height=NULL) = 0;
48 virtual double ascent() = 0;
49 virtual double descent() = 0;
50 virtual double textheight() = 0;
51 virtual double Resize(
double newsize) = 0;
64 virtual LaxFont *
MakeFont(
const char *family,
const char *style,
double size,
int nid) = 0;