return GetImplementation(*this).IsColorGlyph( fontId, glyphIndex );
}
-bool FontClient::AddCustomFontDirectory( const char* path )
+bool FontClient::AddCustomFontDirectory( const FontPath& path )
{
return GetImplementation(*this).AddCustomFontDirectory( path );
}
*
* @return true if the fonts can be added.
*/
- bool AddCustomFontDirectory( const char* path );
+ bool AddCustomFontDirectory( const FontPath& path );
public: // Not intended for application developers
/**
return mPlugin->IsColorGlyph( fontId, glyphIndex );
}
-bool FontClient::AddCustomFontDirectory( const char* path )
+bool FontClient::AddCustomFontDirectory( const FontPath& path )
{
CreatePlugin();
/**
* @copydoc Dali::TextAbstraction::FontClient::AddCustomFontDirectory()
*/
- bool AddCustomFontDirectory( const char* path );
+ bool AddCustomFontDirectory( const FontPath& path );
private:
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()
/**
* @copydoc Dali::TextAbstraction::FontClient::AddCustomFontDirectory()
*/
- bool AddCustomFontDirectory( const char* path );
+ bool AddCustomFontDirectory( const FontPath& path );
private: