Implemented dummy FontStyle::IsFullAndHalfFixed(). Freetype doesn't seem to offer any api to be able to tell such a font from others
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27398 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
30c37990b4
commit
bb549f1c81
@ -140,6 +140,8 @@ FontStyle::Flags() const
|
||||
|
||||
if (IsFixedWidth())
|
||||
flags |= B_IS_FIXED;
|
||||
if (IsFullAndHalfFixed())
|
||||
flags |= B_PRIVATE_FONT_IS_FULL_AND_HALF_FIXED;
|
||||
if (TunedCount() > 0)
|
||||
flags |= B_HAS_TUNED_FONT;
|
||||
if (HasKerning())
|
||||
|
@ -74,6 +74,14 @@ class FontStyle : public ReferenceCounting, public Hashable/*, public BLocker*/
|
||||
*/
|
||||
bool IsFixedWidth() const
|
||||
{ return fFreeTypeFace->face_flags & FT_FACE_FLAG_FIXED_WIDTH; }
|
||||
|
||||
/* \fn bool FontStyle::IsFullAndHalfFixed()
|
||||
\brief Determines whether the font has 2 different, fixed, widths.
|
||||
\return false (for now)
|
||||
*/
|
||||
bool IsFullAndHalfFixed() const
|
||||
{ return false; };
|
||||
|
||||
/*!
|
||||
\fn bool FontStyle::IsScalable(void)
|
||||
\brief Determines whether the font can be scaled to any size
|
||||
|
Loading…
Reference in New Issue
Block a user