mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 21:20:38 +00:00
Implement methods for resizing subviews.
Some minor bug fixes. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@1637 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
f5813d015b
commit
d4848b7da2
6 changed files with 65 additions and 9 deletions
|
@ -31,8 +31,8 @@
|
|||
#include <gnustep/gui/NSFont.h>
|
||||
#include <gnustep/gui/NSFontManager.h>
|
||||
|
||||
NSFont *MB_USER_FIXED_FONT;
|
||||
NSFont *MB_USER_FONT;
|
||||
NSFont *gnustep_gui_user_fixed_font;
|
||||
NSFont *gnustep_gui_user_font;
|
||||
|
||||
// Global Strings
|
||||
NSString *NSAFMAscender;
|
||||
|
@ -110,13 +110,13 @@ NSString *NSAFMXHeight;
|
|||
+ (NSFont *)userFixedPitchFontOfSize:(float)fontSize
|
||||
{
|
||||
NSFontManager *fm = [NSFontManager sharedFontManager];
|
||||
return [fm convertFont:MB_USER_FIXED_FONT toSize:fontSize];
|
||||
return [fm convertFont:gnustep_gui_user_fixed_font toSize:fontSize];
|
||||
}
|
||||
|
||||
+ (NSFont *)userFontOfSize:(float)fontSize
|
||||
{
|
||||
NSFontManager *fm = [NSFontManager sharedFontManager];
|
||||
return [fm convertFont:MB_USER_FONT toSize:fontSize];
|
||||
return [fm convertFont:gnustep_gui_user_font toSize:fontSize];
|
||||
}
|
||||
|
||||
//
|
||||
|
@ -124,12 +124,12 @@ NSString *NSAFMXHeight;
|
|||
//
|
||||
+ (void)setUserFixedPitchFont:(NSFont *)aFont
|
||||
{
|
||||
MB_USER_FIXED_FONT = aFont;
|
||||
gnustep_gui_user_fixed_font = aFont;
|
||||
}
|
||||
|
||||
+ (void)setUserFont:(NSFont *)aFont
|
||||
{
|
||||
MB_USER_FONT = aFont;
|
||||
gnustep_gui_user_font = aFont;
|
||||
}
|
||||
|
||||
+ (void)useFont:(NSString *)fontName
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue