mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 16:30:53 +00:00
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:
parent
1fee4feff2
commit
5d15da4e79
8 changed files with 27 additions and 17 deletions
|
@ -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];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue