X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Fmetrics.h;h=ad4ed416bd4f8a6701532d662ef4a8d7ff79cf91;hp=232360e31cc969fd9a6d370dd2b8e216ad9a79c9;hb=81a7e08e1bcf2c17cb63921915bf13afc1b94d23;hpb=69e82a1bf2e1e4528efbdc6f87b502263cdfb150 diff --git a/dali-toolkit/internal/text/metrics.h b/dali-toolkit/internal/text/metrics.h index 232360e..ad4ed41 100644 --- a/dali-toolkit/internal/text/metrics.h +++ b/dali-toolkit/internal/text/metrics.h @@ -38,7 +38,7 @@ class Metrics; typedef IntrusivePtr MetricsPtr; /** - * @brief A wrapper around FontClient used to get metrics & potentially down-scaled Emoji metrics. + * @brief A wrapper around FontClient used to get metrics. */ class Metrics : public RefObject { @@ -63,26 +63,6 @@ public: } /** - * @brief Set the maximum Emoji size. - * - * @param[in] emojiSize Emoticons will be scaled to fit this size in pixels. - */ - void SetMaxEmojiSize( int emojiSize ) - { - mEmojiSize = emojiSize; - } - - /** - * @brief Get the maximum Emoji size. - * - * @return The maximum Emoji size. - */ - int GetMaxEmojiSize() const - { - return mEmojiSize; - } - - /** * @brief Query the metrics for a font. * * @param[in] fontId The ID of the font for the required glyph. @@ -90,7 +70,7 @@ public: */ void GetFontMetrics( FontId fontId, FontMetrics& metrics ) { - mFontClient.GetFontMetrics( fontId, metrics, mEmojiSize ); // inline for performance + mFontClient.GetFontMetrics( fontId, metrics ); // inline for performance } /** @@ -104,7 +84,7 @@ public: */ bool GetGlyphMetrics( GlyphInfo* array, uint32_t size ) { - return mFontClient.GetGlyphMetrics( array, size, mGlyphType, true, mEmojiSize ); // inline for performance + return mFontClient.GetGlyphMetrics( array, size, mGlyphType, true ); // inline for performance } protected: @@ -121,10 +101,8 @@ private: */ Metrics( TextAbstraction::FontClient& fontClient ) : mFontClient( fontClient ), - mGlyphType( TextAbstraction::BITMAP_GLYPH ), - mEmojiSize( 0 ) - { - } + mGlyphType( TextAbstraction::BITMAP_GLYPH ) + {} // Undefined Metrics(const Metrics&); @@ -136,7 +114,6 @@ private: TextAbstraction::FontClient mFontClient; TextAbstraction::GlyphType mGlyphType; - int mEmojiSize; }; } // namespace Text