X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Fmulti-language-support-impl.h;h=cc6c985721d404f5c5c6712c2498d323209ebd12;hp=3f568a22a6cb48bae8de8321188dd87d00e35fda;hb=666b4b2f13d2f417557180a8440c6686c5dbfe83;hpb=600d7859cddf8ee59d6ddd49002af5fc99e48bf8 diff --git a/dali-toolkit/internal/text/multi-language-support-impl.h b/dali-toolkit/internal/text/multi-language-support-impl.h index 3f568a2..cc6c985 100644 --- a/dali-toolkit/internal/text/multi-language-support-impl.h +++ b/dali-toolkit/internal/text/multi-language-support-impl.h @@ -1,8 +1,8 @@ -#ifndef __DALI_TOOLKIT_TEXT_MULTI_LANGUAGE_SUPPORT_IMPL_H__ -#define __DALI_TOOLKIT_TEXT_MULTI_LANGUAGE_SUPPORT_IMPL_H__ +#ifndef DALI_TOOLKIT_TEXT_MULTI_LANGUAGE_SUPPORT_IMPL_H +#define DALI_TOOLKIT_TEXT_MULTI_LANGUAGE_SUPPORT_IMPL_H /* - * Copyright (c) 2015 Samsung Electronics Co., Ltd. + * Copyright (c) 2019 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. @@ -77,6 +77,12 @@ struct ValidateFontsPerScript */ struct DefaultFonts { + struct CacheItem + { + TextAbstraction::FontDescription description; + FontId fontId; + }; + /** * Default constructor. */ @@ -103,7 +109,9 @@ struct DefaultFonts const TextAbstraction::FontDescription& description, PointSize26Dot6 size ) const; - Vector mFonts; + void Cache( const TextAbstraction::FontDescription& description, FontId fontId ); + + std::vector mFonts; }; /** @@ -177,4 +185,4 @@ inline static const Internal::MultilanguageSupport& GetImplementation( const Mul } // namespace Dali -#endif // __DALI_TOOLKIT_TEXT_MULTI_LANGUAGE_SUPPORT_IMPL_H__ +#endif // DALI_TOOLKIT_TEXT_MULTI_LANGUAGE_SUPPORT_IMPL_H