X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Fmulti-language-helper-functions.h;h=41cb04aad3f958a4f989a3d1016dad71ef85fced;hb=29a52105283ce8ced672ed92545daeacf882316a;hp=b73da2fe1a522d6f69d073c9b86e73614e71a8dc;hpb=b899c4999231a14190e804e13b941527c3c437a1;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/text/multi-language-helper-functions.h b/dali-toolkit/internal/text/multi-language-helper-functions.h index b73da2f..41cb04a 100644 --- a/dali-toolkit/internal/text/multi-language-helper-functions.h +++ b/dali-toolkit/internal/text/multi-language-helper-functions.h @@ -1,8 +1,8 @@ -#ifndef __DALI_TOOLKIT_TEXT_MULTI_LANGUAGE_HELPER_FUNCTIONS_H__ -#define __DALI_TOOLKIT_TEXT_MULTI_LANGUAGE_HELPER_FUNCTIONS_H__ +#ifndef DALI_TOOLKIT_TEXT_MULTI_LANGUAGE_HELPER_FUNCTIONS_H +#define DALI_TOOLKIT_TEXT_MULTI_LANGUAGE_HELPER_FUNCTIONS_H /* - * Copyright (c) 2016 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. @@ -27,29 +27,28 @@ namespace Dali { - namespace Toolkit { - namespace Text { - /** - * @brief Merges the font descriptions to retrieve the font Id for each character. + * @brief Merges font's descriptions to retrieve the combined font's description for a given character. * - * @param[in] fontDescriptions The font descriptions. - * @param[out] fontIds The font id for each character. - * @param[in] defaultFontDescription The default font description. - * @param[in] defaultPointSize The default font size. - * @param[in] startIndex The character from where the fonts are merged. - * @param[in] numberOfCharacters The number of characters to set the font. + * @param[in] fontDescriptions The font's descriptions for the whole text. + * @param[in] defaultFontDescription The default font's description. + * @param[in] defaultPointSize The default font's point size. + * @param[in] characterIndex Index to the character to retrieve its font's description. + * @param[out] fontDescription The font's description for the character. + * @param[out] fontPointSize The font's point size for the character. + * @param[out] isDefaultFont Whether the font is a default one. */ -void MergeFontDescriptions( const Vector& fontDescriptions, - Vector& fontIds, - const TextAbstraction::FontDescription& defaultFontDescription, - TextAbstraction::PointSize26Dot6 defaultPointSize, - CharacterIndex startIndex, - Length numberOfCharacters ); +void MergeFontDescriptions(const Vector& fontDescriptions, + const TextAbstraction::FontDescription& defaultFontDescription, + TextAbstraction::PointSize26Dot6 defaultPointSize, + CharacterIndex characterIndex, + TextAbstraction::FontDescription& fontDescription, + TextAbstraction::PointSize26Dot6& fontPointSize, + bool& isDefaultFont); /** * @brief Retrieves the script Id from the script run for a given character's @p index. @@ -62,9 +61,9 @@ void MergeFontDescriptions( const Vector& fontDescriptions, * * @return The script. */ -Script GetScript( Length index, - Vector::ConstIterator& scriptRunIt, - const Vector::ConstIterator& scriptRunEndIt ); +Script GetScript(Length index, + Vector::ConstIterator& scriptRunIt, + const Vector::ConstIterator& scriptRunEndIt); } // namespace Text @@ -72,4 +71,4 @@ Script GetScript( Length index, } // namespace Dali -#endif // __DALI_TOOLKIT_TEXT_MULTI_LANGUAGE_HELPER_FUNCTIONS_H__ +#endif // DALI_TOOLKIT_TEXT_MULTI_LANGUAGE_HELPER_FUNCTIONS_H