[4.0] AddCustomFontDirectory input parameter type change 64/162464/1
authorJinho, Lee <jeano.lee@samsung.com>
Tue, 11 Jul 2017 13:04:40 +0000 (22:04 +0900)
committerJinho, Lee <jeano.lee@samsung.com>
Fri, 1 Dec 2017 10:41:39 +0000 (19:41 +0900)
Change-Id: I246ad473695dc874919e81e0958fec30a54e3b8e

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..e08cf8b 100644 (file)
@@ -207,7 +207,7 @@ bool FontClient::IsColorGlyph( FontId fontId, GlyphIndex glyphIndex )
   return GetImplementation(*this).IsColorGlyph( fontId, glyphIndex );
 }
 
-bool FontClient::AddCustomFontDirectory( const char* path )
+bool FontClient::AddCustomFontDirectory( const FontPath& path )
 {
   return GetImplementation(*this).AddCustomFontDirectory( path );
 }
index cf0c0b1..951d4ae 100644 (file)
@@ -412,7 +412,7 @@ public:
    *
    * @return true if the fonts can be added.
    */
-  bool AddCustomFontDirectory( const char* path );
+  bool AddCustomFontDirectory( const FontPath& path );
 
 public: // Not intended for application developers
   /**
index 1bed788..497c8f4 100644 (file)
@@ -281,7 +281,7 @@ bool FontClient::IsColorGlyph( FontId fontId, GlyphIndex glyphIndex )
   return mPlugin->IsColorGlyph( fontId, glyphIndex );
 }
 
-bool FontClient::AddCustomFontDirectory( const char* path )
+bool FontClient::AddCustomFontDirectory( const FontPath& path )
 {
   CreatePlugin();
 
index 9637531..13d847b 100644 (file)
@@ -196,7 +196,7 @@ public:
   /**
    * @copydoc Dali::TextAbstraction::FontClient::AddCustomFontDirectory()
    */
-  bool AddCustomFontDirectory( const char* path );
+  bool AddCustomFontDirectory( const FontPath& path );
 
 private:
 
index b7055c1..28750e0 100644 (file)
@@ -1274,10 +1274,10 @@ bool FontClient::Plugin::IsColorGlyph( FontId fontId, GlyphIndex glyphIndex )
   return FT_Err_Ok == error;
 }
 
-bool FontClient::Plugin::AddCustomFontDirectory( const char* path )
+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 ) );
+  return FcConfigAppFontAddDir( NULL, reinterpret_cast<const FcChar8 *>( path.c_str() ) );
 }
 
 void FontClient::Plugin::InitSystemFonts()
index 936a159..a1ceb9a 100644 (file)
@@ -324,7 +324,7 @@ struct FontClient::Plugin
   /**
    * @copydoc Dali::TextAbstraction::FontClient::AddCustomFontDirectory()
    */
-  bool AddCustomFontDirectory( const char* path );
+  bool AddCustomFontDirectory( const FontPath& path );
 
 private: