23 struct FT_LibraryRec_;
29 inline bool isValid()
const {
return myIsValid; }
32 inline const char *
typeface()
const {
return myTypeface; }
36 inline const char *
name()
const {
return myName; }
44 {
return (myStyle & style) ==
style; }
60 inline const char *
path()
const {
return myPath; }
65 inline int faceIndex()
const {
return myFaceIndex; }
83 return myName < other.myName;
89 myFaceIndex(-1), myIsValid(false)
95 : myTypeface(typeface), myName(name),
96 myStyle(style), myWeight(weight),
97 myPath(path), myFaceIndex(face_index)
114 #endif // __FONT_Info__
typedef int(APIENTRYP RE_PFNGLXSWAPINTERVALSGIPROC)(int)
static bool parseWeightName(const char *name, FONT_Weight &weight)
Attempts to parse a font's weight name into the style bit field.
GLsizei const GLchar *const * path
struct FT_LibraryRec_ * FT_Library
const char * typeface() const
The typeface (font family) of the font. E.g. 'Helvetica'.
bool isBolded() const
Returns true if the font is bolded in some way.
static const char * weightName(FONT_Weight weight)
static bool parseStyleName(const char *name, FONT_Style &style)
Attempts to parse a font's style name into the style bit field.
static bool styleName(FONT_Style style, UT_WorkBuffer &name)
Returns the font style name given an FONT_Style bitmap value.
bool isSlanted() const
Returns true if the font is italic or oblique.
GLuint const GLchar * name
No extra visual styles apply.
FONT_Weight weight() const
The weight of the font.
bool hasStyle(FONT_Style style) const
Returns true if the font has the specific style flag set.
bool operator<(const FONT_Info &other) const
Less-than operator for comparison and sorting.
const char * name() const
const char * path() const
Font is italic (calligraphic)
FONT_API std::ostream & operator<<(std::ostream &os, const FONT_Info &fi)
FONT_Style
The font's style describes its visual appearance.