[Tizen] Support custom fonts registration
[platform/core/uifw/dali-adaptor.git] / dali / devel-api / text-abstraction / font-client.h
old mode 100644 (file)
new mode 100755 (executable)
index 951d4ae..c444eb8
@@ -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 <dali/public-api/object/base-handle.h>
 #include <dali/devel-api/text-abstraction/font-list.h>
 #include <dali/devel-api/text-abstraction/text-abstraction-definitions.h>
+#include <dali/public-api/dali-adaptor-common.h>
 
 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.