X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Fpublic-api%2Ftext%2Fmulti-language-support.h;h=7fb7f5822bd023c44bd7c37c1cd5348ef87ae61b;hp=dbd25524e84f87d1050ac63554cd9d875e298ae9;hb=2dd044328238768ae8b27a223cb7d0f5cda53513;hpb=30ead727af1371695a21bccc5be36f58912090ca diff --git a/dali-toolkit/public-api/text/multi-language-support.h b/dali-toolkit/public-api/text/multi-language-support.h index dbd2552..7fb7f58 100644 --- a/dali-toolkit/public-api/text/multi-language-support.h +++ b/dali-toolkit/public-api/text/multi-language-support.h @@ -19,10 +19,10 @@ */ // INTERNAL INCLUDES -#include - -// EXTERNAL INCLUDES +#include #include +#include +#include namespace Dali { @@ -78,15 +78,13 @@ public: /** * @brief Sets the scripts of the whole text. * - * Any script info previously set is removed. - * * Scripts are used to validate and set default fonts and to shape the text in further steps. * - * @pre The @p model needs to have a text set. - * - * @param[in,out] model The text's logical model. + * @param[in] text Vector of UTF-32 characters. + * @param[out] scripts Vector containing the script runs for the whole text. */ - void SetScripts( LogicalModel& model ); + void SetScripts( const Vector& text, + Vector& scripts ); /** * @brief Validates the character's font of the whole text. @@ -101,12 +99,13 @@ public: * If a font has been set by the application developer, this method checks if the font supports the character. * If it doesn't, this method replaces it by a default one. * - * @pre The @p model needs to have a text set. - * @pre The @p model needs to have the scripts set. - * - * @param[in,out] model The text's logical model. + * @param[in] text Vector of UTF-32 characters. + * @param[in] scripts Vector containing the script runs for the whole text. + * @param[in,out] fonts Initially contains the fonts set by the application developers. Returns the validated fonts. */ - void ValidateFonts( LogicalModel& model ); + void ValidateFonts( const Vector& text, + const Vector& scripts, + Vector& fonts ); }; } // namespace Text