New methods to set and use a font.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9927 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2001-05-12 12:36:20 +00:00
parent 89e1bf0de7
commit 3e34f4a97b
2 changed files with 18 additions and 1 deletions

View file

@ -36,7 +36,6 @@
#include <AppKit/NSDragging.h>
@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 */
/* ----------------------------------------------------------------------- */

View file

@ -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 */
/* ----------------------------------------------------------------------- */