[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-pim
Subject:    Re: [Kde-pim] [PATCH] KOrganizer: squeezing text in monthview, 2nd
From:       David Faure <dfaure () klaralvdalens-datakonsult ! se>
Date:       2003-07-11 10:56:23
[Download RAW message or body]

On Thursday 10 July 2003 20:21, Tim Jansen wrote:
> (BTW I noticed that the implementation just adds the width of the chars - what 
> about kerning? Is it guaranteed that X11 does not support it?)

If it does, then Qt will take care of it. Notice that we ask for the width of each char
using fm.charWidth( str, i ), so QFontMetrics has the "context".

But yes, it wraps at word boundaries, that was the whole point of it :}
I was just surprised that you needed iterations - if you're cutting at the char
that doesn't fit, then that's a straightforward thing... what's the reason for
the iterations?
(I'm trying to figure out if there's a feature for KWordWrap here :)

-- 
David Faure -- faure@kde.org, dfaure@klaralvdalens-datakonsult.se
Qt/KDE/KOffice developer
Klarälvdalens Datakonsult AB, Platform-independent software solutions
_______________________________________________
kde-pim mailing list
kde-pim@mail.kde.org
http://mail.kde.org/mailman/listinfo/kde-pim
kde-pim home page at http://pim.kde.org/
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic