modified FontImpl
authorSungyeon Woo <s.woo@samsung.com>
Thu, 28 Mar 2013 04:31:38 +0000 (13:31 +0900)
committerSungyeon Woo <s.woo@samsung.com>
Thu, 28 Mar 2013 04:31:38 +0000 (13:31 +0900)
Change-Id: I527e54aa32c44334d4059933e483cce60a3dd9a8
Signed-off-by: Sungyeon Woo <s.woo@samsung.com>
src/graphics/FGrp_FontImpl.cpp

index f3ae6e3..8c6fa66 100644 (file)
@@ -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);