X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Ftext-controller-impl.h;h=65fce8ed4b20a48e96941c7f419815eeb1767840;hp=e60fe37100364bfbac6edd61693c3d56d73f4d17;hb=7db6fbae4d8855dfb66823e2b5ba6b86da0ebb1b;hpb=2c12e6ecebf7e4254ab033b1d0de64158eb5aead diff --git a/dali-toolkit/internal/text/text-controller-impl.h b/dali-toolkit/internal/text/text-controller-impl.h index e60fe37..65fce8e 100644 --- a/dali-toolkit/internal/text/text-controller-impl.h +++ b/dali-toolkit/internal/text/text-controller-impl.h @@ -175,8 +175,8 @@ struct ModifyEvent struct FontDefaults { FontDefaults() - : mDefaultFontFamily(""), - mDefaultFontStyle(""), + : mFontDescription(), + mFontStyle(), mDefaultPointSize(0.0f), mFontId(0u) { @@ -187,14 +187,14 @@ struct FontDefaults if( !mFontId ) { Dali::TextAbstraction::PointSize26Dot6 pointSize = mDefaultPointSize*64; - mFontId = fontClient.GetFontId( mDefaultFontFamily, mDefaultFontStyle, pointSize ); + mFontId = fontClient.GetFontId( mFontDescription, pointSize ); } return mFontId; } - std::string mDefaultFontFamily; - std::string mDefaultFontStyle; + TextAbstraction::FontDescription mFontDescription; + std::string mFontStyle; float mDefaultPointSize; FontId mFontId; }; @@ -218,7 +218,7 @@ struct Controller::Impl mOperationsPending( NO_OPERATION ), mMaximumNumberOfCharacters( 50 ), mRecalculateNaturalSize( true ), - mUserDefinedFontFamily( false) + mUserDefinedFontFamily( false ) { mLogicalModel = LogicalModel::New(); mVisualModel = VisualModel::New(); @@ -488,7 +488,7 @@ struct Controller::Impl Length mMaximumNumberOfCharacters; ///< Maximum number of characters that can be inserted. bool mRecalculateNaturalSize:1; ///< Whether the natural size needs to be recalculated. - bool mUserDefinedFontFamily:1; ///< Whether the Font family was Set by the user instead of being left as sytem default + bool mUserDefinedFontFamily:1; ///< Whether the Font family was set by the user instead of being left as sytem default. }; } // namespace Text