mirror of
https://github.com/gnustep/libs-back.git
synced 2025-05-29 16:31:29 +00:00
Focus fixes. Update passing of colorspaces, fonts
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@14680 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
31cc43ff10
commit
8ce5bbbfbc
11 changed files with 85 additions and 98 deletions
|
@ -27,6 +27,7 @@
|
|||
#include "gsc/GSContext.h"
|
||||
#include "gsc/GSStreamContext.h"
|
||||
#include "gsc/GSStreamGState.h"
|
||||
#include <AppKit/GSFontInfo.h>
|
||||
#include <Foundation/NSArray.h>
|
||||
#include <Foundation/NSData.h>
|
||||
#include <Foundation/NSDebug.h>
|
||||
|
@ -121,12 +122,12 @@
|
|||
fprintf(gstream, "%g %g %g setrgbcolor\n", r, g, b);
|
||||
}
|
||||
|
||||
- (void) GSSetFillColor: (float *)values
|
||||
- (void) GSSetFillColor: (const float *)values
|
||||
{
|
||||
[self notImplemented: _cmd];
|
||||
}
|
||||
|
||||
- (void) GSSetStrokeColor: (float *)values
|
||||
- (void) GSSetStrokeColor: (const float *)values
|
||||
{
|
||||
[self notImplemented: _cmd];
|
||||
}
|
||||
|
@ -191,10 +192,10 @@
|
|||
[self notImplemented: _cmd];
|
||||
}
|
||||
|
||||
- (void) GSSetFont: (NSFont*)font
|
||||
- (void) GSSetFont: (void *)fontref
|
||||
{
|
||||
const float *m = [font matrix];
|
||||
fprintf(gstream, "/%s findfont ", [[font fontName] cString]);
|
||||
const float *m = [(GSFontInfo *)fontref matrix];
|
||||
fprintf(gstream, "/%s findfont ", [[(GSFontInfo *)fontref fontName] cString]);
|
||||
fprintf(gstream, "[%g %g %g %g %g %g] ", m[0], m[1], m[2], m[3], m[4], m[5]);
|
||||
fprintf(gstream, " makefont setfont\n");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue