X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Fmetrics.h;h=d85fff4866c74b335213f609473624e95e2a1f7e;hp=ad4ed416bd4f8a6701532d662ef4a8d7ff79cf91;hb=528aa3699cd51dab5115bca1aaebb65d4bc67c15;hpb=81a7e08e1bcf2c17cb63921915bf13afc1b94d23 diff --git a/dali-toolkit/internal/text/metrics.h b/dali-toolkit/internal/text/metrics.h old mode 100644 new mode 100755 index ad4ed41..d85fff4 --- a/dali-toolkit/internal/text/metrics.h +++ b/dali-toolkit/internal/text/metrics.h @@ -1,8 +1,8 @@ -#ifndef __DALI_TOOLKIT_TEXT_METRICS_H__ -#define __DALI_TOOLKIT_TEXT_METRICS_H__ +#ifndef DALI_TOOLKIT_TEXT_METRICS_H +#define DALI_TOOLKIT_TEXT_METRICS_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. @@ -87,6 +87,18 @@ public: return mFontClient.GetGlyphMetrics( array, size, mGlyphType, true ); // inline for performance } + /** + * @brief Whether the font has Italic style. + * + * @param[in] fontId The font identifier. + * + * @return true if the font has italic style. + */ + bool HasItalicStyle( FontId fontId ) const + { + return mFontClient.HasItalicStyle( fontId ); + } + protected: /** @@ -122,4 +134,4 @@ private: } // namespace Dali -#endif // __DALI_TOOLKIT_TEXT_METRICS_H__ +#endif // DALI_TOOLKIT_TEXT_METRICS_H