2 * CDE - Common Desktop Environment
4 * Copyright (c) 1993-2012, The Open Group. All rights reserved.
6 * These libraries and programs are free software; you can
7 * redistribute them and/or modify them under the terms of the GNU
8 * Lesser General Public License as published by the Free Software
9 * Foundation; either version 2 of the License, or (at your option)
12 * These libraries and programs are distributed in the hope that
13 * they will be useful, but WITHOUT ANY WARRANTY; without even the
14 * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 * PURPOSE. See the GNU Lesser General Public License for more
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with these libraries and programs; if not, write
20 * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21 * Floor, Boston, MA 02110-1301 USA
23 // $XConsortium: FontCache.hh /main/6 1996/08/30 11:52:57 rcs $
27 //#include <StyleSheet/cde_next.h>
28 #include "dti_cc/CC_String.h"
29 #include "dti_cc/cc_hdict.h"
40 // scale factor is current font scale from preferences dialog
41 const char *lookup(const char *family,
47 const char *fallback = NULL);
51 const char *getxlfd(const char *family, int bold,
52 int italic, const char* charset, int size,
53 const char *fallback = NULL);
57 hashTable<FontEntry, char> f_cache;
58 hashTable<CC_String, FontList> f_fontlist;
65 FontEntry(const char *family,
71 FontEntry(const FontEntry &);
74 bool operator ==(const FontEntry &) const;
76 unsigned hash() const;
90 FontList() // for scalable fonts
91 : f_names(0), f_count(0)
94 FontList(int count, const char **names) ;
96 const char **names() { return f_names ; }
97 int count() { return f_count ; }
99 int scaleable() { return f_names == 0 ; }
101 const char **f_names ;
107 #endif /* _FontCache_hh */
108 /* DO NOT ADD ANY LINES AFTER THIS #endif */