+FT_FaceRec_* FontClient::Plugin::GetFreetypeFace( FontId fontId )
+{
+ FT_Face fontFace = nullptr;
+
+ if( ( fontId > 0u ) &&
+ ( fontId - 1u < mFontFaceCache.size() ) )
+ {
+ fontFace = mFontFaceCache[fontId - 1u].mFreeTypeFace;
+ }
+
+ 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() ) );
+}
+