mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 04:50:47 +00:00
Release 0.3.0.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@2347 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
f38b177296
commit
01b4994fb8
44 changed files with 2645 additions and 1101 deletions
|
@ -69,6 +69,13 @@ static NSFont* getFont(NSString* key, NSString* defaultFontName, float fontSize)
|
|||
if (!fontName)
|
||||
fontName = defaultFontName;
|
||||
|
||||
if (!fontSize) {
|
||||
fontSize = [[NSUserDefaults standardUserDefaults]
|
||||
floatForKey:[NSString stringWithFormat:@"%@Size", key]];
|
||||
if (!fontSize)
|
||||
fontSize = 12;
|
||||
}
|
||||
|
||||
return [NSFont fontWithName:fontName size:fontSize];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue