-#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.
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:
/**
} // namespace Dali
-#endif // __DALI_TOOLKIT_TEXT_METRICS_H__
+#endif // DALI_TOOLKIT_TEXT_METRICS_H