#include <dali/public-api/common/intrusive-ptr.h>
#include <dali/devel-api/text-abstraction/font-client.h>
+// INTERNAL INCLUDES
+#include <dali-toolkit/internal/text/text-definitions.h>
+
namespace Dali
{
}
/**
+ * @brief Used to switch between bitmap & vector based glyphs
+ *
+ * @param[in] glyphType The type of glyph; note that metrics for bitmap & vector based glyphs are different.
+ */
+ void SetGlyphType( TextAbstraction::GlyphType glyphType )
+ {
+ mGlyphType = glyphType;
+ }
+
+ /**
* @brief Set the maximum Emoji size.
*
* @param[in] emojiSize Emoticons will be scaled to fit this size in pixels.
*/
bool GetGlyphMetrics( GlyphInfo* array, uint32_t size )
{
- return mFontClient.GetGlyphMetrics( array, size, true, mEmojiSize ); // inline for performance
+ return mFontClient.GetGlyphMetrics( array, size, mGlyphType, true, mEmojiSize ); // inline for performance
}
protected:
*/
Metrics( TextAbstraction::FontClient& fontClient )
: mFontClient( fontClient ),
+ mGlyphType( TextAbstraction::BITMAP_GLYPH ),
mEmojiSize( 0 )
{
}
private:
TextAbstraction::FontClient mFontClient;
-
+ TextAbstraction::GlyphType mGlyphType;
int mEmojiSize;
};