2004-09-04 23:32 Alexander Malmberg <alexander@malmberg.org>

* Source/GSHorizontalTypesetter.m (-layoutLineNewParagraph:):
	Pass the right glyph position to cells.
	* Headers/AppKit/NSTextAttachment.h: Clarify documentation.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@19991 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Alexander Malmberg 2004-09-04 21:40:30 +00:00
parent 403e326a38
commit 7d98f0f270
3 changed files with 11 additions and 5 deletions

View file

@ -1,3 +1,9 @@
2004-09-04 23:32 Alexander Malmberg <alexander@malmberg.org>
* Source/GSHorizontalTypesetter.m (-layoutLineNewParagraph:):
Pass the right glyph position to cells.
* Headers/AppKit/NSTextAttachment.h: Clarify documentation.
2004-09-04 01:34 Alexander Malmberg <alexander@malmberg.org>
* PrinterTypes/GNUmakefile, PrinterTypes/GNUmakefile.postamble:

View file

@ -90,13 +90,12 @@ up. (TODO) */
/** The new way of placing the cell. **/
/* Returns the rectangle in which the cell should be drawn. The rectangle
is relative to the current point when typesetting. Positive y is probably
up. (TODO)
is relative to the current point when typesetting. Positive y is up.
lineFrag is the line frag rect that this cell might be placed in, and
position is the current position in that line frag rect (positive y is
probably down (TODO)). Note that the line frag rect and glyph position
may not be where the cell is actually placed.
up). Note that the line frag rect and glyph position may not be where
the cell is actually placed.
Note that this might be called many times for the same attachment. Eg. if
you return a rectangle that won't fit in the proposed line frag rect, the

View file

@ -894,7 +894,8 @@ restart: ;
r = [cell cellFrameForTextContainer: curTextContainer
proposedLineFragment: lf->rect
glyphPosition: p
glyphPosition: NSMakePoint(p.x,
lf->rect.size.height - baseline)
characterIndex: g->char_index];
/* printf("cell at %i, (%g %g) in (%g %g)+(%g %g), got rect (%g %g)+(%g %g)\n",