return GetImplementation(*this).IsColorGlyph( fontId, glyphIndex );
}
-bool FontClient::AddCustomFontDirectory( const FontPath& path )
-{
- return GetImplementation(*this).AddCustomFontDirectory( path );
-}
-
FontClient::FontClient( Internal::FontClient* internal )
: BaseHandle( internal )
{
*/
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().
return mPlugin->IsColorGlyph( fontId, glyphIndex );
}
-bool FontClient::AddCustomFontDirectory( const FontPath& path )
-{
- CreatePlugin();
-
- return mPlugin->AddCustomFontDirectory( path );
-}
-
void FontClient::CreatePlugin()
{
if( !mPlugin )
*/
bool IsColorGlyph( FontId fontId, GlyphIndex glyphIndex );
- /**
- * @copydoc Dali::TextAbstraction::FontClient::AddCustomFontDirectory()
- */
- bool AddCustomFontDirectory( const FontPath& path );
-
private:
/**
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" );
*/
bool IsColorGlyph( FontId fontId, GlyphIndex glyphIndex );
- /**
- * @copydoc Dali::TextAbstraction::FontClient::AddCustomFontDirectory()
- */
- bool AddCustomFontDirectory( const FontPath& path );
-
private:
/**