Some small changes to support backing-store.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@2244 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
netcrep 1997-03-17 18:43:27 +00:00
parent c50f0dae54
commit e57412cbff
8 changed files with 27 additions and 17 deletions

View file

@ -61,13 +61,13 @@ NSString*NSAFMXHeight = @"XHeight";
Convention (see the red book). */
static NSMutableSet* fontsUsed = nil;
static NSFont* getFont(NSString* key, NSString* defaultFont, float fontSize)
static NSFont* getFont(NSString* key, NSString* defaultFontName, float fontSize)
{
NSString* fontName;
fontName = [[NSUserDefaults standardUserDefaults] objectForKey:key];
if (!fontName)
return [NSFont fontWithName: defaultFont size: fontSize];
fontName = defaultFontName;
return [NSFont fontWithName:fontName size:fontSize];
}