When printing, position each glyph explicitly.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@19711 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Alexander Malmberg 2004-07-11 12:21:41 +00:00
parent 3fe5425f73
commit 6feb2e58f5
2 changed files with 13 additions and 3 deletions

View file

@ -1,3 +1,8 @@
2004-07-11 14:17 Alexander Malmberg <alexander@malmberg.org>
* Source/NSLayoutManager.m (-drawGlyphsForGlyphRange:atPoint:):
When printing, position each glyph explicitly.
2004-07-09 Chad Hardin <cehardin@mac.com>
* Source/GNUmakefile:
* Headers/AppKit/NSPageLayout.h:

View file

@ -1302,7 +1302,7 @@ container
#define GBUF_SIZE 16 /* TODO: tweak */
NSGlyph gbuf[GBUF_SIZE];
int gbuf_len;
int gbuf_len, gbuf_size;
NSPoint gbuf_point;
NSView *controlView = nil;
@ -1311,6 +1311,11 @@ container
return;
[self _doLayoutToGlyph: range.location + range.length - 1];
if ([ctxt isDrawingToScreen])
gbuf_size = GBUF_SIZE;
else
gbuf_size = 16;
for (i = 0, tc = textcontainers; i < num_textcontainers; i++, tc++)
if (tc->pos + tc->length > range.location)
break;
@ -1467,10 +1472,10 @@ container
}
else
{
if (gbuf_len == GBUF_SIZE)
if (gbuf_len == gbuf_size)
{
DPSmoveto(ctxt, gbuf_point.x, gbuf_point.y);
GSShowGlyphs(ctxt, gbuf, GBUF_SIZE);
GSShowGlyphs(ctxt, gbuf, gbuf_size);
DPSnewpath(ctxt);
gbuf_len = 0;
gbuf_point = p;