Kaydet (Commit) a7c51323 authored tarafından Khaled Hosny's avatar Khaled Hosny

Drop check for ancient FontConfig releases

FontConfig 2.4.1 that fixes this bug was released 10 years ago.

Change-Id: Ib0970d3916909fe14eb4e3ed1425f925a13160ad
üst aef0a650
......@@ -221,8 +221,7 @@ FcFontSet* FontCfgWrapper::getFontSet()
{
m_pOutlineSet = FcFontSetCreate();
addFontSet( FcSetSystem );
if( FcGetVersion() > 20400 ) // #i85462# prevent crashes
addFontSet( FcSetApplication );
addFontSet( FcSetApplication );
::std::sort(m_pOutlineSet->fonts,m_pOutlineSet->fonts+m_pOutlineSet->nfont,SortFont());
}
......@@ -659,11 +658,6 @@ void PrintFontManager::deinitFontconfig()
void PrintFontManager::addFontconfigDir( const OString& rDirName )
{
// workaround for a stability problems in older FC versions
// when handling application specific fonts
const int nVersion = FcGetVersion();
if( nVersion <= 20400 )
return;
const char* pDirName = rDirName.getStr();
bool bDirOk = (FcConfigAppFontAddDir(FcConfigGetCurrent(), reinterpret_cast<FcChar8 const *>(pDirName) ) == FcTrue);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment