FONTAINE  1.0
FontFamily.h
Go to the documentation of this file.
1 //
2 // The Fontaine Font Analysis Project
3 //
4 // Copyright (c) 2009 by Edward H. Trager
5 // All Rights Reserved
6 //
7 // Released under the GNU GPL version 2.0 or later.
8 //
9 
10 
11 #include <string>
12 #include <set>
13 #include "FontFace.h"
14 
15 //
16 // A FontFamily is a collection of FontFiles
17 // bearing the same family name.
18 //
19 class FontFamily{
20 
21 public:
22 
23  //
24  // FontFamilies are distinguished uniquely by
25  // commonName:
26  //
27  struct compare{
28  bool operator()(const FontFamily *f1,const FontFamily *f2) const{
29  return f1->_commonName < f2->_commonName;
30  }
31  };
32 
33 
34 private:
35 
36  std::string _commonName;
37  std::string _nativeName;
38 
39  //
40  // A FontFamily consists of a set of FontFaces:
41  //
42  std::set<FontFace *,FontFace::compare> _fontFaces;
43 
44 };
45 
FontFamily
Definition: FontFamily.h:19
FontFace.h
FontFamily::compare::operator()
bool operator()(const FontFamily *f1, const FontFamily *f2) const
Definition: FontFamily.h:28
FontFamily::compare
Definition: FontFamily.h:27
FontFamily::_nativeName
std::string _nativeName
Definition: FontFamily.h:37
FontFamily::_fontFaces
std::set< FontFace *, FontFace::compare > _fontFaces
Definition: FontFamily.h:42
FontFamily::_commonName
std::string _commonName
Definition: FontFamily.h:36