From e64f2c16237edc51362b2ef71a15304c86057780 Mon Sep 17 00:00:00 2001 From: Sungyeon Woo Date: Thu, 28 Mar 2013 13:31:38 +0900 Subject: [PATCH] modified FontImpl Change-Id: I527e54aa32c44334d4059933e483cce60a3dd9a8 Signed-off-by: Sungyeon Woo --- src/graphics/FGrp_FontImpl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/graphics/FGrp_FontImpl.cpp b/src/graphics/FGrp_FontImpl.cpp index f3ae6e3..8c6fa66 100644 --- a/src/graphics/FGrp_FontImpl.cpp +++ b/src/graphics/FGrp_FontImpl.cpp @@ -698,7 +698,7 @@ _FontImpl::GetTextExtent(float vcWidth, const Tizen::Base::String& text, int sta SysTryReturnResult(NID_GRP, startIndex >= 0 && length >= 0 && startIndex < text.GetLength(), E_OUT_OF_RANGE, "The length(%d) & startIndex(%d) of the given text is out of range", length, startIndex); - int pcWidth = _FloatToIntPos(_ResUtil::ToPhyCoordW(vcWidth)); + int pcWidth = _FloatToIntForPos(_ResUtil::ToPhyCoordW(vcWidth)); Dimension pcDim; result r = _pNativeFont->GetTextExtent(pcWidth, _Util::String(text.GetPointer(), text.GetLength(), startIndex, length), outline, count, pcDim); @@ -719,7 +719,7 @@ _FontImpl::GetTextExtent(float vcWidth, const Tizen::Base::String& text, int sta SysTryReturnResult(NID_GRP, startIndex >= 0 && length >= 0 && startIndex < text.GetLength(), E_OUT_OF_RANGE, "The length(%d) & startIndex(%d) of the given text is out of range", length, startIndex); - int pcWidth = _FloatToIntPos(_ResUtil::ToPhyCoordW(vcWidth)); + int pcWidth = _FloatToIntForPos(_ResUtil::ToPhyCoordW(vcWidth)); Dimension pcDim; result r = _pNativeFont->GetTextExtent(pcWidth, _Util::String(text.GetPointer(), text.GetLength(), startIndex, length), outline, delimiter, count, pcDim); -- 2.7.4