modified FontImpl
authorSungyeon Woo <s.woo@samsung.com>
Sat, 30 Mar 2013 07:44:41 +0000 (16:44 +0900)
committerSungyeon Woo <s.woo@samsung.com>
Sat, 30 Mar 2013 07:56:28 +0000 (16:56 +0900)
Change-Id: I883b7017e3f3314bcc5d26fb439b1380c36c3c60
Signed-off-by: Sungyeon Woo <s.woo@samsung.com>
src/graphics/FGrp_FontImpl.cpp
src/graphics/inc/FGrp_FontImpl.h

index 349d73e..f8afc36 100755 (executable)
@@ -736,7 +736,7 @@ result
 _FontImpl::SetSize(int vcSize)
 {
        IF_NOT_CONSTRUCTED(return E_OPERATION_FAILED);
-       SysTryReturnResult(NID_GRP, vcSize > 0, E_INVALID_ARG, "font size should be greater than 0");
+       SysTryReturnResult(NID_GRP, vcSize > 0, E_INVALID_ARG, "Font size should be greater than 0");
 
        _pCoordHolder->Reset(vcSize);
 
@@ -747,7 +747,7 @@ _FontImpl::SetSize(int vcSize)
        {
                pcSize = _Util::FixedPoint26_6(1);
 
-               _pCoordHolder->size.phyCoord = pcSize;
+               _pCoordHolder->size.phyCoord = 1;
                _pCoordHolder->size.virCoord = vcSize;
        }
 
@@ -772,7 +772,7 @@ _FontImpl::SetSize(float vcSize)
        {
                pcSize = _Util::FixedPoint26_6(1.0f);
 
-               _pCoordHolder->sizeF.phyCoord = pcSize.ToFloat();
+               _pCoordHolder->sizeF.phyCoord = 1.0f;
                _pCoordHolder->sizeF.virCoord = vcSize;
        }
 
@@ -844,7 +844,7 @@ _FontImpl::UpdateDefaultFont(const Tizen::Base::String& key)
 }
 
 result
-_FontImpl::GetTextExtentList(const Tizen::Base::String& string, int startIndex, int length, Tizen::Base::Collection::ArrayListT<_FloatPair>& outList)
+_FontImpl::GetTextExtentList(const Tizen::Base::String& string, int startIndex, int length, Tizen::Base::Collection::ArrayListT<_FloatPair>& outList) const
 {
        IF_NOT_CONSTRUCTED(return E_OPERATION_FAILED);
 
index 513e13d..f25e2bc 100755 (executable)
@@ -164,7 +164,7 @@ public:
        result GetTextExtent(int width, const Tizen::Base::String& text, int startIndex, int length, bool outline, const Tizen::Base::String& delimiter, int& count, Dimension& dim) const;
        result GetTextExtent(float width, const Tizen::Base::String& text, int startIndex, int length, bool outline, const Tizen::Base::String& delimiter, int& count, FloatDimension& dim) const;
 
-       result GetTextExtentList(const Tizen::Base::String& text, int startIndex, int length, Tizen::Base::Collection::ArrayListT<_FloatPair>& outList);
+       result GetTextExtentList(const Tizen::Base::String& text, int startIndex, int length, Tizen::Base::Collection::ArrayListT<_FloatPair>& outList) const;
 
        /*
         * Sets the font size.