diff --git a/Headers/gnustep/gui/NSGraphicsContext.h b/Headers/gnustep/gui/NSGraphicsContext.h index 3c2df3178..058034f87 100644 --- a/Headers/gnustep/gui/NSGraphicsContext.h +++ b/Headers/gnustep/gui/NSGraphicsContext.h @@ -36,7 +36,6 @@ #include - @class NSDate; @class NSDictionary; @class NSEvent; @@ -46,6 +45,7 @@ @class NSView; @class NSWindow; @class NSGraphicsContext; +@class NSFont; @@ -213,6 +213,8 @@ NSGraphicsContext *GSCurrentContext(); - (void) DPSselectfont: (const char*)name : (float)scale ; - (void) DPSsetfont: (int)f ; - (void) DPSundefinefont: (const char*)name ; +- (void) setFont: (NSFont*) font; +- (void) useFont: (NSString*) name; /* ----------------------------------------------------------------------- */ /* Gstate operations */ /* ----------------------------------------------------------------------- */ diff --git a/Source/NSGraphicsContext.m b/Source/NSGraphicsContext.m index 162e42e64..435fb16f4 100644 --- a/Source/NSGraphicsContext.m +++ b/Source/NSGraphicsContext.m @@ -1104,6 +1104,21 @@ NSGraphicsContext *GSCurrentContext() [self subclassResponsibility: _cmd]; } +- (void) setFont: (NSFont*) font +{ + [self subclassResponsibility: _cmd]; +} + +- (void) useFont: (NSString*) name +{ + /* + * Do nothing here, printing subclasses will have to register all + * the fonts used by the current print operation to be able to + * dump the %%DocumentFonts comment required by the Adobe Document + * Structuring Convention (see the red book). + */ +} + /* ----------------------------------------------------------------------- */ /* Gstate operations */ /* ----------------------------------------------------------------------- */