Revert "[Tizen] Support custom fonts registration" 93/175193/1
authorhuiyu.eun <huiyu.eun@samsung.com>
Mon, 9 Apr 2018 07:51:20 +0000 (16:51 +0900)
committerhuiyu.eun <huiyu.eun@samsung.com>
Mon, 9 Apr 2018 07:51:22 +0000 (16:51 +0900)
This reverts commit 85d894f01f1256769c246f21eb8f704393adb32c.

Change-Id: I8ca8a629f5838ded1044a1f32ebdcefe4e3c2d4e
Signed-off-by: huiyu.eun <huiyu.eun@samsung.com>
dali/devel-api/text-abstraction/font-client.cpp
dali/devel-api/text-abstraction/font-client.h
dali/internal/text/text-abstraction/font-client-impl.cpp
dali/internal/text/text-abstraction/font-client-impl.h
dali/internal/text/text-abstraction/font-client-plugin-impl.cpp
dali/internal/text/text-abstraction/font-client-plugin-impl.h

index fb11e5c..43519c8 100644 (file)
@@ -207,11 +207,6 @@ bool FontClient::IsColorGlyph( FontId fontId, GlyphIndex glyphIndex )
   return GetImplementation(*this).IsColorGlyph( fontId, glyphIndex );
 }
 
-bool FontClient::AddCustomFontDirectory( const FontPath& path )
-{
-  return GetImplementation(*this).AddCustomFontDirectory( path );
-}
-
 FontClient::FontClient( Internal::FontClient* internal )
 : BaseHandle( internal )
 {
index 951d4ae..8c8cfca 100644 (file)
@@ -405,15 +405,6 @@ public:
    */
   bool IsColorGlyph( FontId fontId, GlyphIndex glyphIndex );
 
-  /**
-   * @brief  Add custom fonts directory
-   *
-   * @param[in] path to the fonts directory
-   *
-   * @return true if the fonts can be added.
-   */
-  bool AddCustomFontDirectory( const FontPath& path );
-
 public: // Not intended for application developers
   /**
    * @brief This constructor is used by FontClient::Get().
index 6c71899..2d47928 100644 (file)
@@ -281,13 +281,6 @@ bool FontClient::IsColorGlyph( FontId fontId, GlyphIndex glyphIndex )
   return mPlugin->IsColorGlyph( fontId, glyphIndex );
 }
 
-bool FontClient::AddCustomFontDirectory( const FontPath& path )
-{
-  CreatePlugin();
-
-  return mPlugin->AddCustomFontDirectory( path );
-}
-
 void FontClient::CreatePlugin()
 {
   if( !mPlugin )
index 13d847b..cfa3a20 100644 (file)
@@ -193,11 +193,6 @@ public:
    */
   bool IsColorGlyph( FontId fontId, GlyphIndex glyphIndex );
 
-  /**
-   * @copydoc Dali::TextAbstraction::FontClient::AddCustomFontDirectory()
-   */
-  bool AddCustomFontDirectory( const FontPath& path );
-
 private:
 
   /**
index 65ca24e..faa61f0 100644 (file)
@@ -1274,12 +1274,6 @@ bool FontClient::Plugin::IsColorGlyph( FontId fontId, GlyphIndex glyphIndex )
   return FT_Err_Ok == error;
 }
 
-bool FontClient::Plugin::AddCustomFontDirectory( const FontPath& path )
-{
-  // NULL as first parameter means the current configuration is used.
-  return FcConfigAppFontAddDir( NULL, reinterpret_cast<const FcChar8 *>( path.c_str() ) );
-}
-
 void FontClient::Plugin::InitSystemFonts()
 {
   DALI_LOG_INFO( gLogFilter, Debug::General, "-->FontClient::Plugin::InitSystemFonts\n" );
index 4f1e344..969f160 100644 (file)
@@ -321,11 +321,6 @@ struct FontClient::Plugin
    */
   bool IsColorGlyph( FontId fontId, GlyphIndex glyphIndex );
 
-  /**
-   * @copydoc Dali::TextAbstraction::FontClient::AddCustomFontDirectory()
-   */
-  bool AddCustomFontDirectory( const FontPath& path );
-
 private:
 
   /**