mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 20:01:11 +00:00
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:
parent
89e1bf0de7
commit
3e34f4a97b
2 changed files with 18 additions and 1 deletions
|
@ -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 */
|
||||
/* ----------------------------------------------------------------------- */
|
||||
|
|
|
@ -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 */
|
||||
/* ----------------------------------------------------------------------- */
|
||||
|
|
Loading…
Reference in a new issue