mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 22:10:36 +00:00
* Source/NSFont.m: Apply slightly modified version of patch
from Jeff Teunissen deek@d2dc.net to setNSFont(). Setting a font should set its size. * Source/NSImage.m: Set the alpha on the background when printing. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23894 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
4225c9f33c
commit
a2cc8db82d
3 changed files with 13 additions and 2 deletions
|
@ -33,6 +33,7 @@
|
|||
#include <Foundation/NSMapTable.h>
|
||||
#include <Foundation/NSException.h>
|
||||
#include <Foundation/NSDebug.h>
|
||||
#include <Foundation/NSValue.h>
|
||||
|
||||
#include "AppKit/NSGraphicsContext.h"
|
||||
#include "AppKit/NSFont.h"
|
||||
|
@ -408,8 +409,11 @@ static NSFont *getNSFont(float fontSize, int role)
|
|||
static void setNSFont(NSString *key, NSFont *font)
|
||||
{
|
||||
int i;
|
||||
[defaults setObject: [font fontName] forKey: key];
|
||||
|
||||
[defaults setObject: [font fontName] forKey: key];
|
||||
[defaults setObject: [NSNumber numberWithFloat: [font pointSize]]
|
||||
forKey: [NSString stringWithFormat: @"%@Size",key]];
|
||||
|
||||
for (i = 1; i < RoleMax; i++)
|
||||
{
|
||||
DESTROY(font_roles[i].cachedFont);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue