Make use of Freetype macros where applicable (no functional change)

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33999 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini
2009-11-11 10:33:58 +00:00
parent 9ae0991a0c
commit b69c3af236
+5 -7
View File
@@ -74,8 +74,8 @@ class FontStyle : public ReferenceCounting, public Hashable {
\return true if fixed, false if not \return true if fixed, false if not
*/ */
bool IsFixedWidth() const bool IsFixedWidth() const
{ return fFreeTypeFace->face_flags { return FT_IS_FIXED_WIDTH( fFreeTypeFace); }
& FT_FACE_FLAG_FIXED_WIDTH; }
/* \fn bool FontStyle::IsFullAndHalfFixed() /* \fn bool FontStyle::IsFullAndHalfFixed()
\brief Determines whether the font has 2 different, fixed, widths. \brief Determines whether the font has 2 different, fixed, widths.
@@ -90,23 +90,21 @@ class FontStyle : public ReferenceCounting, public Hashable {
\return true if scalable, false if not \return true if scalable, false if not
*/ */
bool IsScalable() const bool IsScalable() const
{ return fFreeTypeFace->face_flags { return FT_IS_SCALABLE(fFreeTypeFace); }
& FT_FACE_FLAG_SCALABLE; }
/*! /*!
\fn bool FontStyle::HasKerning(void) \fn bool FontStyle::HasKerning(void)
\brief Determines whether the font has kerning information \brief Determines whether the font has kerning information
\return true if kerning info is available, false if not \return true if kerning info is available, false if not
*/ */
bool HasKerning() const bool HasKerning() const
{ return fFreeTypeFace->face_flags { return FT_HAS_KERNING(fFreeTypeFace); }
& FT_FACE_FLAG_KERNING; }
/*! /*!
\fn bool FontStyle::HasTuned(void) \fn bool FontStyle::HasTuned(void)
\brief Determines whether the font contains strikes \brief Determines whether the font contains strikes
\return true if it has strikes included, false if not \return true if it has strikes included, false if not
*/ */
bool HasTuned() const bool HasTuned() const
{ return fFreeTypeFace->num_fixed_sizes > 0; } { return FT_HAS_FIXED_SIZES(fFreeTypeFace); }
/*! /*!
\fn bool FontStyle::TunedCount(void) \fn bool FontStyle::TunedCount(void)
\brief Returns the number of strikes the style contains \brief Returns the number of strikes the style contains