static const uint32_t NUMBER_OF_POINTS_PER_ONE_UNIT_OF_POINT_SIZE; ///< Factor multiply point-size in toolkit.
+ // For Debug
+ static uint32_t GetPerformanceLogThresholdTime(); ///< Return performance log threshold time in miliseconds for debug.
+ static bool IsPerformanceLogEnabled(); ///< Whether performance log is enabled.
+
/**
* @brief Used to load an embedded item into the font client.
*/
* @param[in] extraFamilyList A list of additional font families to be pre-cached.
* @param[in] localeFamily A locale font family to be pre-cached.
* @param[in] useThread True if the font client should create thread and perform pre-caching, false otherwise.
+ * @param[in] syncCreation True if thread creation guarantees syncronization with the main thread, false async creation.
*/
-DALI_ADAPTOR_API void FontClientPreCache(const FontFamilyList& fallbackFamilyList, const FontFamilyList& extraFamilyList, const FontFamily& localeFamily, bool useThread);
+DALI_ADAPTOR_API void FontClientPreCache(const FontFamilyList& fallbackFamilyList, const FontFamilyList& extraFamilyList, const FontFamily& localeFamily, bool useThread, bool syncCreation);
/**
* @brief This is used to pre-load FreeType font face in order to improve the runtime performance of the application.
* @param[in] fontPathList A list of font paths to be pre-loaded.
* @param[in] memoryFontPathList A list of memory font paths to be pre-loaded.
* @param[in] useThread True if the font client should create thread and perform font pre-loading, false otherwise.
+ * @param[in] syncCreation True if thread creation guarantees syncronization with the main thread, false async creation.
*
* @note
* The fonts in the fontPathList perform FT_New_Face during pre-loading,
* This enables the use of FT_New_Memory_Face during runtime and provides a performance boost.
* It requires memory equivalent to the size of each font file.
*/
-DALI_ADAPTOR_API void FontClientFontPreLoad(const FontPathList& fontPathList, const FontPathList& memoryFontPathList, bool useThread);
+DALI_ADAPTOR_API void FontClientFontPreLoad(const FontPathList& fontPathList, const FontPathList& memoryFontPathList, bool useThread, bool syncCreation);
+
+/**
+ * @brief Joins font threads, waiting for their execution to complete.
+ */
+DALI_ADAPTOR_API void FontClientJoinFontThreads();
} // namespace TextAbstraction