Reinstate missing font code in case 'GSDefaultForMissingFont' doens't work

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@38892 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Marcian Lytwyn 2015-08-16 22:46:40 +00:00
parent d87d3066ff
commit 20d5565cdd

View file

@ -878,16 +878,16 @@ static void setNSFont(NSString *key, NSFont *font)
matrix: fontMatrix
screenFont: screen]);
}
// In case the font for name was missing also...
if (fontInfo == nil)
{
// HACK FIX FOR MISSING FONT - NEEDS TO BE FIXED...
fontInfo = RETAIN([GSFontInfo fontInfoForFontName: @"Arial"
matrix: fontMatrix
screenFont: screen]);
}
}
// In case the 'GSDefaultForMissingFont' font for name was missing also...
if (fontInfo == nil)
{
// HACK FIX FOR MISSING FONT - NEEDS TO BE FIXED...
fontInfo = RETAIN([GSFontInfo fontInfoForFontName: @"Arial"
matrix: fontMatrix
screenFont: screen]);
}
}
if (fontInfo == nil)