21 #ifndef __EDELIB_FONTCACHE_H__
22 #define __EDELIB_FONTCACHE_H__
24 #include "edelib-global.h"
25 #include <FL/Enumerations.H>
35 #define EDELIB_FONT_CACHE_FACE_LEN 64
47 char face[EDELIB_FONT_CACHE_FACE_LEN];
86 bool load(
const char *dir,
const char *db =
"edelib-font-cache",
const char *prefix =
"ede");
95 int count(
void)
const;
101 bool find(
const char *n, Fl_Font &font,
int &size);
107 FontInfo *find(
const char *n,
int &size);
113 void for_each_font(
void (*) (
const char *n,
FontInfo *,
void *),
void *data = NULL);
121 void for_each_font_sorted(
void (*) (
const char *n,
FontInfo *,
void *),
void *data = NULL);
131 static int init_db(
const char *dir,
const char *db =
"edelib-font-cache",
const char *prefix =
"ede");
134 static int init_db(
void);
142 EDELIB_API
bool font_cache_find(
const char *face, Fl_Font &f,
int &s, Fl_Font df = FL_HELVETICA,
int ds = 12);
~FontCache()
Definition: FontCache.h:80
Base structure for storing font information; used by FontCache.
Definition: FontCache.h:45
FontCache()
Definition: FontCache.h:77
#define E_DISABLE_CLASS_COPY(klass)
Definition: edelib-global.h:161
Allow readable font names and cache their access.
Definition: FontCache.h:71
int nsizes
Definition: FontCache.h:51
int type
Definition: FontCache.h:53