X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Fdevel-api%2Ftext-abstraction%2Ffont-client.h;h=c444eb828187ba959cb4b300431777dd8f1c198d;hb=9e3a2cb44eafec6b1279e6ac932a5ec95404285c;hp=951d4aead9d0317bf26999db8c10e0768bcaab01;hpb=85d894f01f1256769c246f21eb8f704393adb32c;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git diff --git a/dali/devel-api/text-abstraction/font-client.h b/dali/devel-api/text-abstraction/font-client.h old mode 100644 new mode 100755 index 951d4ae..c444eb8 --- a/dali/devel-api/text-abstraction/font-client.h +++ b/dali/devel-api/text-abstraction/font-client.h @@ -2,7 +2,7 @@ #define DALI_PLATFORM_TEXT_ABSTRACTION_FONT_CLIENT_H /* - * Copyright (c) 2017 Samsung Electronics Co., Ltd. + * Copyright (c) 2018 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. @@ -25,6 +25,7 @@ #include #include #include +#include namespace Dali { @@ -59,7 +60,7 @@ class FontClient; * @endcode * Glyph metrics and bitmap resources can then be retrieved using the FontId. */ -class DALI_IMPORT_API FontClient : public BaseHandle +class DALI_ADAPTOR_API FontClient : public BaseHandle { public: static const PointSize26Dot6 DEFAULT_POINT_SIZE; ///< The default point size. @@ -67,7 +68,7 @@ public: /** * @brief Struct used to retrieve the glyph's bitmap. */ - struct GlyphBufferData + struct DALI_ADAPTOR_API GlyphBufferData { /** * @brief Constructor. @@ -350,12 +351,14 @@ public: * * @note The caller is responsible for deallocating the bitmap data @p data.buffer using delete[]. * - * @param[in] fontId The identifier of the font. - * @param[in] glyphIndex The index of a glyph within the specified font. - * @param[out] data The bitmap data. - * @param[in] outlineWidth The width of the glyph outline in pixels. + * @param[in] fontId The identifier of the font. + * @param[in] glyphIndex The index of a glyph within the specified font. + * @param[in] softwareItalic Whether glyph needs software support to draw italic style. + * @param[in] softwareBold Whether glyph needs software support to draw bold style. + * @param[out] data The bitmap data. + * @param[in] outlineWidth The width of the glyph outline in pixels. */ - void CreateBitmap( FontId fontId, GlyphIndex glyphIndex, GlyphBufferData& data, int outlineWidth ); + void CreateBitmap( FontId fontId, GlyphIndex glyphIndex, bool softwareItalic, bool softwareBold, GlyphBufferData& data, int outlineWidth ); /** * @brief Create a bitmap representation of a glyph.