You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Karen Lease <kl...@club-internet.fr> on 2001/06/20 23:58:39 UTC

Modification in line placement

Hi,

While debugging a strange problem from John Wyman recently, I discovered
an inconsistency in how we decide whether a block area has room for
another line of text. It works differently on the first line in the
block from the remaining lines.

This isn't necessarily stupid, at least for some line-stacking-strategy
values.
However, for the fairly simple one FOP is currently implementing, it can
lead to some strange results.

I also noticed that the way we are calculating half-leading in BlockArea
isn't correct according to the CR. The result is that our actual
line-spacing tends to be less than what the stylesheet uses as a
line-height value. This is because the "glyph height" of a font
(ascender + descender) is typically less than the actual font-size
value.

The "fix" is trivial, but it will change all existing test results,
because the line-spacing will increase! Because of that, I haven't yet
committed it.
Opinions?

Regards,
Karen


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


RE: Modification in line placement

Posted by John Wyman <jo...@wyman.org>.
If it fixes my problem, (selfishly asking) do it.


John H. Wyman
5160 Darry Lane
Dublin, OH 43016
(614)-889-0698
johnwyman@wyman.org <ma...@wyman.org>
Wyman Genealogy Site <http://www.wyman.org>
Francis Wyman Assoc email List
http://groups.yahoo.com/group/FrancisWymanAssoc
Wyman Family Genealogy Forum <http://genforum.genealogy.com/wyman/>
The Wyman Surname Message Board
<http://www.familyhistory.com/messages/messages.asp?category=surname&for
um=Wyman>

  

-----Original Message-----
From: karen@front4.grolier.fr [mailto:karen@front4.grolier.fr] On Behalf
Of Karen Lease
Sent: Wednesday, June 20, 2001 5:59 PM
To: fop-dev@xml.apache.org
Subject: Modification in line placement


Hi,

While debugging a strange problem from John Wyman recently, I discovered
an inconsistency in how we decide whether a block area has room for
another line of text. It works differently on the first line in the
block from the remaining lines.

This isn't necessarily stupid, at least for some line-stacking-strategy
values. However, for the fairly simple one FOP is currently
implementing, it can lead to some strange results.

I also noticed that the way we are calculating half-leading in BlockArea
isn't correct according to the CR. The result is that our actual
line-spacing tends to be less than what the stylesheet uses as a
line-height value. This is because the "glyph height" of a font
(ascender + descender) is typically less than the actual font-size
value.

The "fix" is trivial, but it will change all existing test results,
because the line-spacing will increase! Because of that, I haven't yet
committed it. Opinions?

Regards,
Karen


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


RE: Modification in line placement

Posted by John Wyman <jo...@wyman.org>.
Karen,
Could you email me the fix, I'm really in a bind, and need to work on my
style sheets and can't as long as this item is outstanding.
Thanks
John


John H. Wyman
5160 Darry Lane
Dublin, OH 43016
(614)-889-0698
johnwyman@wyman.org <ma...@wyman.org>
Wyman Genealogy Site <http://www.wyman.org>
Francis Wyman Assoc email List
http://groups.yahoo.com/group/FrancisWymanAssoc
Wyman Family Genealogy Forum <http://genforum.genealogy.com/wyman/>
The Wyman Surname Message Board
<http://www.familyhistory.com/messages/messages.asp?category=surname&for
um=Wyman>

  

-----Original Message-----
From: karen@front4.grolier.fr [mailto:karen@front4.grolier.fr] On Behalf
Of Karen Lease
Sent: Wednesday, June 20, 2001 5:59 PM
To: fop-dev@xml.apache.org
Subject: Modification in line placement


Hi,

While debugging a strange problem from John Wyman recently, I discovered
an inconsistency in how we decide whether a block area has room for
another line of text. It works differently on the first line in the
block from the remaining lines.

This isn't necessarily stupid, at least for some line-stacking-strategy
values. However, for the fairly simple one FOP is currently
implementing, it can lead to some strange results.

I also noticed that the way we are calculating half-leading in BlockArea
isn't correct according to the CR. The result is that our actual
line-spacing tends to be less than what the stylesheet uses as a
line-height value. This is because the "glyph height" of a font
(ascender + descender) is typically less than the actual font-size
value.

The "fix" is trivial, but it will change all existing test results,
because the line-spacing will increase! Because of that, I haven't yet
committed it. Opinions?

Regards,
Karen


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org