to get baseline as (maxHeight / 3.0f)
authorYunji Park <yunji19.park@samsung.com>
Mon, 29 Apr 2013 09:12:04 +0000 (18:12 +0900)
committerYunji Park <yunji19.park@samsung.com>
Mon, 29 Apr 2013 09:12:04 +0000 (18:12 +0900)
Change-Id: I14193cbc852b04fb2aee3dda0c95250693fccaad

src/graphics/text/FGrp_TextTextSimple.cpp

index f6e2b7a..7514e2b 100644 (file)
@@ -1431,7 +1431,9 @@ TextSimple::GetBaselineF(void) const
        _FontImpl* pFontImpl = _FontImpl::GetInstance(*pCurrentFont);
        SysTryReturn(NID_GRP, pFontImpl, -1, E_SYSTEM, "[E_SYSTEM] Fail to get native font instance.");
 
-       return pFontImpl->GetDescenderF();
+       float maxHeight = pFontImpl->GetMaxHeight();
+
+       return maxHeight / 3.0f;
 }
 
 }}} // Tizen::Graphics::_Text