DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=36977>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=36977





------- Additional Comments From [EMAIL PROTECTED]  2005-10-14 16:35 -------
I don't have the font you use in your example, so I cannot directly test it to
see what happens.

Anyway, if you could attach the list of elements created it could be easier to
see if they are correct.

For example, you could put this method in LineLayoutManager.java ...

private void outputElementList(Paragraph par) {
    System.out.println("");
    System.out.println("paragraph start");
    ListIterator iter = par.listIterator();
    KnuthElement el;
    while (iter.hasNext()) {
        el = (KnuthElement) iter.next();
        if (el.isBox()) {
            System.out.println(iter.previousIndex() + ") box w=" + el.getW());
        } else if (el.isGlue()) {
            System.out.println(iter.previousIndex() + ") gllue w=" + el.getW() +
" y=" + el.getY() + " z=" + el.getZ());
        } else {
            System.out.println(iter.previousIndex() + ") penalty w=" + el.getW()
+ " p=" + el.getP());
        }
    }
    System.out.println("paragraph end");
}

... call it in createLineBreaks() just before findOptimalBreakingPoints(), with
seq as parameter, and attach the resulting output file.

Regards
    Luca

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

Reply via email to