X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Fglyph-metrics-helper.h;h=05ba882dfc7b64786ee83649655611b7f258ecc2;hb=bb7e4ec5b2bf13fe0eef2d1446e2ef2bbb41edb0;hp=6856d27ae0a63bd1d05ae771cdec19cb2a5d47bf;hpb=d7cef550d3627f3a161913ab1805a7faf0a15f36;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 6856d27..05ba882 100644 --- a/dali-toolkit/internal/text/glyph-metrics-helper.h +++ b/dali-toolkit/internal/text/glyph-metrics-helper.h @@ -2,7 +2,7 @@ #define DALI_TOOLKIT_TEXT_GLYPH_METRICS_HELPER_H /* - * Copyright (c) 2019 Samsung Electronics Co., Ltd. + * Copyright (c) 2021 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -23,13 +23,10 @@ namespace Dali { - namespace Toolkit { - namespace Text { - /** * @brief Some characters can be shaped in more than one glyph. * This struct is used to retrieve metrics from these group of glyphs. @@ -37,16 +34,18 @@ namespace Text struct GlyphMetrics { GlyphMetrics() - : fontId( 0u ), - fontHeight( 0.f ), - width( 0.f ), - advance( 0.f ), - ascender( 0.f ), - xBearing( 0.f ) - {} + : fontId(0u), + fontHeight(0.f), + width(0.f), + advance(0.f), + ascender(0.f), + xBearing(0.f) + { + } ~GlyphMetrics() - {} + { + } FontId fontId; ///< The font id of the glyphs. float fontHeight; ///< The font's height of those glyphs. @@ -65,9 +64,9 @@ struct GlyphMetrics * * @return The number of glyphs of the group. */ -Length GetNumberOfGlyphsOfGroup( GlyphIndex glyphIndex, - GlyphIndex lastGlyphPlusOne, - const Length* const charactersPerGlyphBuffer ); +Length GetNumberOfGlyphsOfGroup(GlyphIndex glyphIndex, + GlyphIndex lastGlyphPlusOne, + const Length* const charactersPerGlyphBuffer); /** * @brief Get some glyph's metrics of a group of glyphs formed as a result of shaping one character. @@ -78,11 +77,11 @@ Length GetNumberOfGlyphsOfGroup( GlyphIndex glyphIndex, * @param[in] glyphsBuffer The glyphs buffer. * @param[in] metrics Used to access metrics from FontClient. */ -void GetGlyphsMetrics( GlyphIndex glyphIndex, - Length numberOfGlyphs, - GlyphMetrics& glyphMetrics, - const GlyphInfo* const glyphsBuffer, - MetricsPtr& metrics ); +void GetGlyphsMetrics(GlyphIndex glyphIndex, + Length numberOfGlyphs, + GlyphMetrics& glyphMetrics, + const GlyphInfo* const glyphsBuffer, + MetricsPtr& metrics); } // namespace Text