Revert "[Tizen] Support custom fonts registration"
authorJoogab Yun <joogab.yun@samsung.com>
Mon, 17 Sep 2018 04:48:48 +0000 (13:48 +0900)
committerJoogab Yun <joogab.yun@samsung.com>
Mon, 17 Sep 2018 04:48:48 +0000 (13:48 +0900)
This reverts commit f00e09aba1bc465b859649e66c3095ff2550e554.

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 00b7528..2dcb128 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 c444eb8..167607d 100755 (executable)
@@ -408,15 +408,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 3d0f72b..ad125fd 100644 (file)
@@ -288,13 +288,6 @@ FT_FaceRec_* FontClient::GetFreetypeFace( FontId fontId )
   return mPlugin->GetFreetypeFace( fontId );
 }
 
-bool FontClient::AddCustomFontDirectory( const FontPath& path )
-{
-  CreatePlugin();
-
-  return mPlugin->AddCustomFontDirectory( path );
-}
-
 void FontClient::CreatePlugin()
 {
   if( !mPlugin )
index 0d9cf71..e957187 100644 (file)
@@ -205,11 +205,6 @@ public:
    */
   FT_FaceRec_* GetFreetypeFace( FontId fontId );
 
-  /**
-   * @copydoc Dali::TextAbstraction::FontClient::AddCustomFontDirectory()
-   */
-  bool AddCustomFontDirectory( const FontPath& path );
-
 private:
 
   /**
index 9b866ef..8047822 100644 (file)
@@ -1283,12 +1283,6 @@ FT_FaceRec_* FontClient::Plugin::GetFreetypeFace( FontId fontId )
   return fontFace;
 }
 
-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 9bbc70c..da207d5 100644 (file)
@@ -329,11 +329,6 @@ struct FontClient::Plugin
    */
   FT_FaceRec_* GetFreetypeFace( FontId fontId );
 
-  /**
-   * @copydoc Dali::TextAbstraction::FontClient::AddCustomFontDirectory()
-   */
-  bool AddCustomFontDirectory( const FontPath& path );
-
 private:
 
   /**