mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-25 17:21:02 +00:00
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:
parent
eee9416e6b
commit
b5f4b49fdb
1 changed files with 13 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue