Revert "[4.0] Support custom fonts registration" 55/155655/1
authorSeoyeon Kim <seoyeon2.kim@samsung.com>
Mon, 16 Oct 2017 02:08:28 +0000 (11:08 +0900)
committerSeoyeon Kim <seoyeon2.kim@samsung.com>
Mon, 16 Oct 2017 02:08:34 +0000 (11:08 +0900)
This reverts commit cc06bc9577950bea77b30f1482980b1e52131562.

Change-Id: I11cd9b6c3dce206d93995f8a2fdaf0a2c65d6c5d

text/dali/devel-api/text-abstraction/font-client.cpp
text/dali/devel-api/text-abstraction/font-client.h
text/dali/internal/text-abstraction/font-client-impl.cpp
text/dali/internal/text-abstraction/font-client-impl.h
text/dali/internal/text-abstraction/font-client-plugin-impl.cpp
text/dali/internal/text-abstraction/font-client-plugin-impl.h

index d15cc57..90470d2 100644 (file)
@@ -207,11 +207,6 @@ bool FontClient::IsColorGlyph( FontId fontId, GlyphIndex glyphIndex )
   return GetImplementation(*this).IsColorGlyph( fontId, glyphIndex );
 }
 
-bool FontClient::AddCustomFontDirectory( const char* path )
-{
-  return GetImplementation(*this).AddCustomFontDirectory( path );
-}
-
 FontClient::FontClient( Internal::FontClient* internal )
 : BaseHandle( internal )
 {
index cf0c0b1..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 char* path );
-
 public: // Not intended for application developers
   /**
    * @brief This constructor is used by FontClient::Get().
index 1bed788..4ab90bf 100644 (file)
@@ -281,13 +281,6 @@ bool FontClient::IsColorGlyph( FontId fontId, GlyphIndex glyphIndex )
   return mPlugin->IsColorGlyph( fontId, glyphIndex );
 }
 
-bool FontClient::AddCustomFontDirectory( const char* path )
-{
-  CreatePlugin();
-
-  return mPlugin->AddCustomFontDirectory( path );
-}
-
 void FontClient::CreatePlugin()
 {
   if( !mPlugin )
index 9637531..cfa3a20 100644 (file)
@@ -193,11 +193,6 @@ public:
    */
   bool IsColorGlyph( FontId fontId, GlyphIndex glyphIndex );
 
-  /**
-   * @copydoc Dali::TextAbstraction::FontClient::AddCustomFontDirectory()
-   */
-  bool AddCustomFontDirectory( const char* path );
-
 private:
 
   /**
index b7055c1..a1e4cc6 100644 (file)
@@ -1274,12 +1274,6 @@ bool FontClient::Plugin::IsColorGlyph( FontId fontId, GlyphIndex glyphIndex )
   return FT_Err_Ok == error;
 }
 
-bool FontClient::Plugin::AddCustomFontDirectory( const char* path )
-{
-  // NULL as first parameter means the current configuration is used.
-  return FcConfigAppFontAddDir( NULL, reinterpret_cast<const FcChar8 *>( path ) );
-}
-
 void FontClient::Plugin::InitSystemFonts()
 {
   DALI_LOG_INFO( gLogFilter, Debug::General, "-->FontClient::Plugin::InitSystemFonts\n" );
index 936a159..c1e158f 100644 (file)
@@ -321,11 +321,6 @@ struct FontClient::Plugin
    */
   bool IsColorGlyph( FontId fontId, GlyphIndex glyphIndex );
 
-  /**
-   * @copydoc Dali::TextAbstraction::FontClient::AddCustomFontDirectory()
-   */
-  bool AddCustomFontDirectory( const char* path );
-
 private:
 
   /**