TEMP FIX for missing helvetica font

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@35375 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Marcian Lytwyn 2012-08-08 22:46:54 +00:00
parent eee9416e6b
commit b5f4b49fdb

View file

@ -46,6 +46,7 @@
#import "AppKit/NSView.h"
#import "GNUstepGUI/GSFontInfo.h"
#include <GNUstepGUI/GSDisplayServer.h>
@interface NSFont (Private)
- (id) initWithName: (NSString*)name
@ -861,6 +862,18 @@ static void setNSFont(NSString *key, NSFont *font)
screenFont: screen]);
}
}
else if (fontInfo == nil)
{
Class cls = NSClassFromString(@"WIN32Server");
if (cls && [GSCurrentServer() isKindOfClass: cls])
{
// HACK FIX FOR MISSING FONT - NEEDS TO BE FIXED...
fontInfo = RETAIN([GSFontInfo fontInfoForFontName:@"Arial"
matrix: fontMatrix
screenFont: screen]);
}
}
if (fontInfo == nil)
{
DESTROY(fontName);