2 * Copyright 2001-2008, Haiku.
3 * Distributed under the terms of the MIT License.
6 * DarkWyrm <bpmagic@columbus.rr.com>
7 * Axel Dörfler, axeld@pinc-software.de
10 #define FONT_FAMILY_H_
13 #include <ObjectList.h>
16 #include "FontStyle.h"
20 \class FontFamily FontFamily.h
21 \brief Class representing a collection of similar styles
23 FontFamily objects bring together many styles of the same face, such as
24 Arial Roman, Arial Italic, Arial Bold, etc.
28 FontFamily(const char* name
, uint16 id
);
29 virtual ~FontFamily();
31 const char* Name() const;
33 bool AddStyle(FontStyle
* style
);
34 bool RemoveStyle(FontStyle
* style
);
36 FontStyle
* GetStyle(const char* style
) const;
37 FontStyle
* GetStyleMatchingFace(uint16 face
) const;
38 FontStyle
* GetStyleByID(uint16 face
) const;
44 bool HasStyle(const char* style
) const;
45 int32
CountStyles() const;
46 FontStyle
* StyleAt(int32 index
) const;
49 FontStyle
* _FindStyle(const char* name
) const;
52 BObjectList
<FontStyle
> fStyles
;
58 #endif // FONT_FAMILY_H_