mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 12:00:48 +00:00
* Source/NSLayoutManager.m:
* Source/NSGraphicsContext.m: * Headers/AppKit/DPSOperators.h: * Headers/AppKit/NSGraphicsContext.h: * Headers/Additions/GNUstepGUI/GSMethodTable.h: New GSShowGlyphsWithAdvances, which replaces GSShowGlyphs as the primitive text drawing method. (used by -[NSLayoutManager drawGlyphsForGlyphRange:atPoint:]) Requires r33121 in -back. Note that the advances aren't actually used by -back yet so text output should be unchanged. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33122 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
1300127d57
commit
4857c9bbd4
6 changed files with 49 additions and 6 deletions
|
@ -561,6 +561,8 @@ NSGraphicsContext *GSCurrentContext(void)
|
|||
GET_IMP(@selector(GSShowText::));
|
||||
methodTable.GSShowGlyphs__ =
|
||||
GET_IMP(@selector(GSShowGlyphs::));
|
||||
methodTable.GSShowGlyphsWithAdvances__ =
|
||||
GET_IMP(@selector(GSShowGlyphsWithAdvances:::));
|
||||
|
||||
/* ----------------------------------------------------------------------- */
|
||||
/* Gstate Handling */
|
||||
|
@ -1078,6 +1080,13 @@ NSGraphicsContext *GSCurrentContext(void)
|
|||
[self subclassResponsibility: _cmd];
|
||||
}
|
||||
|
||||
/** Paints the glyphs with the specified advances using the current font.
|
||||
(Quartz). */
|
||||
- (void) GSShowGlyphsWithAdvances: (const NSGlyph *)glyphs : (const NSSize *)advances : (size_t) length
|
||||
{
|
||||
[self subclassResponsibility: _cmd];
|
||||
}
|
||||
|
||||
/* ----------------------------------------------------------------------- */
|
||||
/* Gstate Handling */
|
||||
/* ----------------------------------------------------------------------- */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue