mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 10:01:14 +00:00
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:
parent
d87d3066ff
commit
20d5565cdd
1 changed files with 9 additions and 9 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue