FONTAINE
1.0
|
00001 // 00002 // The Fontaine Font Analysis Project 00003 // 00004 // Copyright (c) 2009 by Edward H. Trager 00005 // All Rights Reserved 00006 // 00007 // Released under the GNU GPL version 2.0 or later. 00008 // 00009 00010 00011 #include <string> 00012 #include <set> 00013 #include "FontFace.h" 00014 00015 // 00016 // A FontFamily is a collection of FontFiles 00017 // bearing the same family name. 00018 // 00019 class FontFamily{ 00020 00021 public: 00022 00023 // 00024 // FontFamilies are distinguished uniquely by 00025 // commonName: 00026 // 00027 struct compare{ 00028 bool operator()(const FontFamily *f1,const FontFamily *f2) const{ 00029 return f1->_commonName < f2->_commonName; 00030 } 00031 }; 00032 00033 00034 private: 00035 00036 std::string _commonName; 00037 std::string _nativeName; 00038 00039 // 00040 // A FontFamily consists of a set of FontFaces: 00041 // 00042 std::set<FontFace *,FontFace::compare> _fontFaces; 00043 00044 }; 00045