X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=automated-tests%2Fsrc%2Fdali-toolkit-internal%2Fdali-toolkit-test-utils%2Ftoolkit-text-utils.h;h=0b9f5926c6428964267df7a5aca06dcf288330ac;hp=ccfbe98940f3066397f18f59076c5c6a0343387d;hb=fbd8d4da2506b57b46a71c5d113f4cb86f23c731;hpb=21080c3c8107e51c71da5b319d83162a57c171b4 diff --git a/automated-tests/src/dali-toolkit-internal/dali-toolkit-test-utils/toolkit-text-utils.h b/automated-tests/src/dali-toolkit-internal/dali-toolkit-test-utils/toolkit-text-utils.h index ccfbe98..0b9f592 100644 --- a/automated-tests/src/dali-toolkit-internal/dali-toolkit-test-utils/toolkit-text-utils.h +++ b/automated-tests/src/dali-toolkit-internal/dali-toolkit-test-utils/toolkit-text-utils.h @@ -93,6 +93,37 @@ void ConfigureTextField( ControllerPtr controller ); */ void ConfigureTextEditor( ControllerPtr controller ); + +/** + * @brief Creates one FontDescriptionRun then add it to FontDescription list. + * + * @param[in] characterRun The initial character index and the number of characters of the run. + * @param[in] fontFamilyName The font's family name. + * @param[in] weight The font's weight. + * @param[in] width The font's width. + * @param[in] slant The font's slant. + * @param[in] size Whether the font's family is defined. + * @param[in] familyDefined Whether the font's weight is defined. + * @param[in] weightDefined Whether the font's width is defined. + * @param[in] widthDefined Whether the ellipsis layout option is enabled. + * @param[in] slantDefined Whether the font's slant is defined. + * @param[in] sizeDefined Whether the font's size is defined. + +* @return vector contains one FontDescriptionRun. + */ +Vector CreateSingleFontDescription( + const CharacterRun& characterRun, + const std::string fontFamilyName, + const FontWeight weight, + const FontWidth width, + const FontSlant slant, + const PointSize26Dot6 size, + const bool familyDefined, + const bool weightDefined, + const bool widthDefined, + const bool slantDefined, + const bool sizeDefined); + } // namespace Text } // namespace Toolkit