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");
101 bool find(
const char *n, Fl_Font &font,
int &size);
131 static int init_db(
const char *dir,
const char *db =
"edelib-font-cache",
const char *prefix =
"ede");
142 EDELIB_API
bool font_cache_find(
const char *face, Fl_Font &f,
int &s, Fl_Font df = FL_HELVETICA,
int ds = 12);
static int init_db(const char *dir, const char *db="edelib-font-cache", const char *prefix="ede")
bool find(const char *n, Fl_Font &font, int &size)
int nsizes
Definition: FontCache.h:51
~FontCache()
Definition: FontCache.h:80
FontCache()
Definition: FontCache.h:77
Allow readable font names and cache their access.
Definition: FontCache.h:71
#define E_DISABLE_CLASS_COPY(klass)
Definition: edelib-global.h:161
void for_each_font_sorted(void(*)(const char *n, FontInfo *, void *), void *data=((void *) 0))
bool load(const char *dir, const char *db="edelib-font-cache", const char *prefix="ede")
void for_each_font(void(*)(const char *n, FontInfo *, void *), void *data=((void *) 0))
Base structure for storing font information; used by FontCache.
Definition: FontCache.h:45
int type
Definition: FontCache.h:53
FontInfo * find(const char *n, int &size)