1 // $XConsortium: FontCache.hh /main/6 1996/08/30 11:52:57 rcs $
5 //#include <StyleSheet/cde_next.h>
6 #include "dti_cc/CC_String.h"
7 #include "dti_cc/cc_hdict.h"
18 // scale factor is current font scale from preferences dialog
19 const char *lookup(const char *family,
25 const char *fallback = NULL);
29 const char *getxlfd(const char *family, int bold,
30 int italic, const char* charset, int size,
31 const char *fallback = NULL);
35 hashTable<FontEntry, char> f_cache;
36 hashTable<CC_String, FontList> f_fontlist;
43 FontEntry(const char *family,
49 FontEntry(const FontEntry &);
52 bool operator ==(const FontEntry &) const;
54 unsigned hash() const;
68 FontList() // for scalable fonts
69 : f_names(0), f_count(0)
72 FontList(int count, const char **names) ;
74 const char **names() { return f_names ; }
75 int count() { return f_count ; }
77 int scaleable() { return f_names == 0 ; }
79 const char **f_names ;
85 #endif /* _FontCache_hh */
86 /* DO NOT ADD ANY LINES AFTER THIS #endif */