From bb549f1c81257c695e6204611a8e42eb3519560c Mon Sep 17 00:00:00 2001 From: Stefano Ceccherini Date: Wed, 10 Sep 2008 09:02:59 +0000 Subject: [PATCH] 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 --- src/servers/app/FontStyle.cpp | 2 ++ src/servers/app/FontStyle.h | 8 ++++++++ 2 files changed, 10 insertions(+) diff --git a/src/servers/app/FontStyle.cpp b/src/servers/app/FontStyle.cpp index 84042b96e3..8dab23e96c 100644 --- a/src/servers/app/FontStyle.cpp +++ b/src/servers/app/FontStyle.cpp @@ -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()) diff --git a/src/servers/app/FontStyle.h b/src/servers/app/FontStyle.h index ae1803bea2..034f4449ff 100644 --- a/src/servers/app/FontStyle.h +++ b/src/servers/app/FontStyle.h @@ -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