Implement basic appendBezierPathWithPackedGlyphs: handling to forward to

the backend.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26435 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2008-04-07 13:45:41 +00:00
parent 14176f6a78
commit e87446b5cb
5 changed files with 22 additions and 1 deletions

View file

@ -1,3 +1,13 @@
2008-04-07 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSFont.m (NSConvertGlyphsToPackedGlyphs): Store the glyph
count in th efirst byte.
* Source/NSBezierPath.m (-appendBezierPathWithPackedGlyphs): Send
this method on to the graphics context.
* Headers/AppKit/NSGraphicsContext.h,
* Source/NSGraphicsContext.m
(-appendBezierPathWithPackedGlyphs:path:): New method.
2008-04-04 Fred Kiefer <FredKiefer@gmx.de>
* Headers/Additions/GNUstepGUI/GSFontInfo.h,

View file

@ -272,6 +272,8 @@ APPKIT_EXPORT NSGraphicsContext *GSCurrentContext(void);
- (void) DPSawidthshow: (float)cx : (float)cy : (int)c : (float)ax : (float)ay
: (const char*)s;
- (void) DPScharpath: (const char*)s : (int)b;
- (void) appendBezierPathWithPackedGlyphs: (const char *)packedGlyphs
path: (NSBezierPath*)aPath;
- (void) DPSshow: (const char*)s;
- (void) DPSwidthshow: (float)x : (float)y : (int)c : (const char*)s;
- (void) DPSxshow: (const char*)s : (const float*)numarray : (int)size;

View file

@ -1169,7 +1169,8 @@ typedef struct _PathElement
- (void)appendBezierPathWithPackedGlyphs:(const char *)packedGlyphs
{
// TODO
[GSCurrentContext() appendBezierPathWithPackedGlyphs: packedGlyphs
path: self];
}

View file

@ -1473,6 +1473,8 @@ int NSConvertGlyphsToPackedGlyphs(NSGlyph *glBuf,
int j;
j = 0;
// Store the number of glyphs in the first byte.
packedGlyphs[j++] = count;
for (i = 0; i < count; i++)
{
NSGlyph g = glBuf[i];

View file

@ -906,6 +906,12 @@ NSGraphicsContext *GSCurrentContext(void)
[self subclassResponsibility: _cmd];
}
- (void) appendBezierPathWithPackedGlyphs: (const char *)packedGlyphs
path: (NSBezierPath*)aPath
{
[self subclassResponsibility: _cmd];
}
/** Display the string s using the current font (DPS). */
- (void) DPSshow: (const char *)s
{