// // Copyright (C) 1996 Ben Ross // // You may distribute under the terms of the GNU General Public // License as specified in the COPYING file. // // $Id: XeFontTable.h,v 1.2 2001/08/01 11:22:25 ben Exp $ #ifndef _XeFontTable_H_ #define _XeFontTable_H_ #include #include #include // hash function object for std::string - maybe move this to Xe.h if it // turns out that string keyed hash_maps are used elsewhere namespace __gnu_cxx { template<> struct hash { size_t operator()(const std::string& s) const { return __stl_hash_string(s.c_str()); } }; } class XeFontTable : public __gnu_cxx::hash_map { public: XeFontTable(void) : __gnu_cxx::hash_map(64) {} ~XeFontTable(); XFontStruct* getFont(const char* fontname); }; #endif // _XeFontTable_H_