X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Fglyph-metrics-helper.h;h=dac57f02aeb12953ea409de593e6038113c805fe;hb=120b951f49a8f1bb98adc557b9415dd044632e5d;hp=05ba882dfc7b64786ee83649655611b7f258ecc2;hpb=9ddd5fea6278d06b8874988498c7c4c6508750ba;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/text/glyph-metrics-helper.h b/dali-toolkit/internal/text/glyph-metrics-helper.h index 05ba882..dac57f0 100644 --- a/dali-toolkit/internal/text/glyph-metrics-helper.h +++ b/dali-toolkit/internal/text/glyph-metrics-helper.h @@ -83,6 +83,28 @@ void GetGlyphsMetrics(GlyphIndex glyphIndex, const GlyphInfo* const glyphsBuffer, MetricsPtr& metrics); +/** + * @brief Takes the character index, obtains the glyph index (and the number of Glyphs) from it and finally gets the glyph metrics. + * + * @param[in] index The character index. + * @param[in] glyphInfoBuffer The glyphs buffer. + * @param[in] charactersToGlyphBuffer A vector containing the glyph index for each character. + * @param[in] glyphsPerCharacterBuffer A vector containing the number of glyphs in each character. + * @param[in] metrics Used to access metrics from FontClient. + * @param[out] glyphMetrics Some glyph metrics (font height, advance, ascender and x bearing). + * @param[out] glyphIndex The glyph index obtained from the character index. + * @param[out] numberOfGlyphs The number of glyphs in the character of which the index was passed to the function. + * + */ +void GetGlyphMetricsFromCharacterIndex(CharacterIndex index, + const GlyphInfo* const glyphInfoBuffer, + const GlyphIndex* const charactersToGlyphBuffer, + const Length* const glyphsPerCharacterBuffer, + MetricsPtr& metrics, + GlyphMetrics& glyphMetrics, + GlyphIndex& glyphIndex, + Length& numberOfGlyphs); + } // namespace Text } // namespace Toolkit