Bug fix in GetfallbackFont , check same style font
authorkeonpyo.kong <keonpyo.kong@samsung.com>
Fri, 22 Mar 2013 11:52:57 +0000 (20:52 +0900)
committerkeonpyo.kong <keonpyo.kong@samsung.com>
Fri, 22 Mar 2013 11:52:57 +0000 (20:52 +0900)
Change-Id: I49aabb3daae84e928165c36dd9b352e03f91ae06
Signed-off-by: keonpyo.kong <keonpyo.kong@samsung.com>
src/ui/FUi_Control.cpp

index 9430e2f..13cf641 100644 (file)
@@ -2470,10 +2470,11 @@ _Control::GetFallbackFont(void)
        delegate.OnFontInfoRequested(style, textSize);
        delegate.OnFontInfoRequested(style, floatTextSize);
        _ControlManager* pControlManager = _ControlManager::GetInstance();
-
+       _FontImpl* pFontImpl  = _FontImpl::GetInstance(*__pFont);
        if (!(__isControlFontChanged || pControlManager->IsDefaultFontChanged())
                && __pFont != null
-               && ((__pFont->GetSize() == textSize || __pFont->GetSizeF() == floatTextSize)))
+               && ((__pFont->GetSize() == textSize || __pFont->GetSizeF() == floatTextSize))
+               && (pFontImpl->GetStyle() == style))
        {
                return __pFont;
        }