mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 23:20:48 +00:00
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:
parent
70524767a8
commit
32f9e35c67
2 changed files with 13 additions and 3 deletions
|
@ -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>
|
2004-07-09 Chad Hardin <cehardin@mac.com>
|
||||||
* Source/GNUmakefile:
|
* Source/GNUmakefile:
|
||||||
* Headers/AppKit/NSPageLayout.h:
|
* Headers/AppKit/NSPageLayout.h:
|
||||||
|
|
|
@ -1302,7 +1302,7 @@ container
|
||||||
|
|
||||||
#define GBUF_SIZE 16 /* TODO: tweak */
|
#define GBUF_SIZE 16 /* TODO: tweak */
|
||||||
NSGlyph gbuf[GBUF_SIZE];
|
NSGlyph gbuf[GBUF_SIZE];
|
||||||
int gbuf_len;
|
int gbuf_len, gbuf_size;
|
||||||
NSPoint gbuf_point;
|
NSPoint gbuf_point;
|
||||||
|
|
||||||
NSView *controlView = nil;
|
NSView *controlView = nil;
|
||||||
|
@ -1311,6 +1311,11 @@ container
|
||||||
return;
|
return;
|
||||||
[self _doLayoutToGlyph: range.location + range.length - 1];
|
[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++)
|
for (i = 0, tc = textcontainers; i < num_textcontainers; i++, tc++)
|
||||||
if (tc->pos + tc->length > range.location)
|
if (tc->pos + tc->length > range.location)
|
||||||
break;
|
break;
|
||||||
|
@ -1467,10 +1472,10 @@ container
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (gbuf_len == GBUF_SIZE)
|
if (gbuf_len == gbuf_size)
|
||||||
{
|
{
|
||||||
DPSmoveto(ctxt, gbuf_point.x, gbuf_point.y);
|
DPSmoveto(ctxt, gbuf_point.x, gbuf_point.y);
|
||||||
GSShowGlyphs(ctxt, gbuf, GBUF_SIZE);
|
GSShowGlyphs(ctxt, gbuf, gbuf_size);
|
||||||
DPSnewpath(ctxt);
|
DPSnewpath(ctxt);
|
||||||
gbuf_len = 0;
|
gbuf_len = 0;
|
||||||
gbuf_point = p;
|
gbuf_point = p;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue