FONTAINE
1.0
Main Page
Namespaces
Classes
Files
File List
File Members
src
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
Generated by
1.8.3.1