mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 06:30:47 +00:00
Update docs
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@13335 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
2bc60d6232
commit
228bb345cf
40 changed files with 3582 additions and 4300 deletions
|
@ -203,14 +203,14 @@ setNSFont(NSString* key, NSFont* font)
|
|||
|
||||
/* Setting the preferred user fonts*/
|
||||
|
||||
+ (void) setUserFixedPitchFont: (NSFont*)font
|
||||
+ (void) setUserFixedPitchFont: (NSFont*)aFont
|
||||
{
|
||||
setNSFont (@"NSUserFixedPitchFont", font);
|
||||
setNSFont (@"NSUserFixedPitchFont", aFont);
|
||||
}
|
||||
|
||||
+ (void) setUserFont: (NSFont*)font
|
||||
+ (void) setUserFont: (NSFont*)aFont
|
||||
{
|
||||
setNSFont (@"NSUserFont", font);
|
||||
setNSFont (@"NSUserFont", aFont);
|
||||
}
|
||||
|
||||
+ (void)setPreferredFontNames:(NSArray *)fontNames
|
||||
|
@ -374,14 +374,14 @@ setNSFont(NSString* key, NSFont* font)
|
|||
return 12.0;
|
||||
}
|
||||
|
||||
+ (NSFont*) fontWithName: (NSString*)name
|
||||
+ (NSFont*) fontWithName: (NSString*)aFontName
|
||||
matrix: (const float*)fontMatrix
|
||||
{
|
||||
return AUTORELEASE([[NSFontClass alloc] initWithName: name
|
||||
return AUTORELEASE([[NSFontClass alloc] initWithName: aFontName
|
||||
matrix: fontMatrix]);
|
||||
}
|
||||
|
||||
+ (NSFont*) fontWithName: (NSString*)name
|
||||
+ (NSFont*) fontWithName: (NSString*)aFontName
|
||||
size: (float)fontSize
|
||||
{
|
||||
NSFont*font;
|
||||
|
@ -398,14 +398,14 @@ setNSFont(NSString* key, NSFont* font)
|
|||
fontMatrix[0] = fontSize;
|
||||
fontMatrix[3] = fontSize;
|
||||
|
||||
font = [self fontWithName: name matrix: fontMatrix];
|
||||
font = [self fontWithName: aFontName matrix: fontMatrix];
|
||||
font->matrixExplicitlySet = NO;
|
||||
return font;
|
||||
}
|
||||
|
||||
+ (void) useFont: (NSString*)name
|
||||
+ (void) useFont: (NSString*)aFontName
|
||||
{
|
||||
[GSCurrentContext() useFont: name];
|
||||
[GSCurrentContext() useFont: aFontName];
|
||||
}
|
||||
|
||||
//
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue