[Konsole-devel] [Bug 50901] fonts like lucidasanstypewriter do not work in konsole

Devendra Deshpande devendra at cadence.com
Mon Dec 2 09:15:44 UTC 2002


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
     
http://bugs.kde.org/show_bug.cgi?id=50901     




------- Additional Comments From devendra at cadence.com  2002-12-02 10:15 -------
Subject: Re:  fonts like lucidasanstypewriter do not work in konsole

On 2 Dec 2002 08:37:52 -0000 Stephan Binner <binner at kde.org> wrote:
> >  Any clues as to what might be happening?  
>  
> You forgot to place brackets after "if", it picks up the width of the
> last char.

<embarrassed>
I realized that.
</embarrassed>

I did a few code changes that effectively take out:

    font_w=fm.maxWidth();

from the conditional.

And I commented all the stuff that iterates over 0-127 chars and finds
the max width. I get the right result now.

Essentially, the code does the following (no more iterating):

    font_w=fm.maxWidth();

Things work like a charm now. I suspect this messes up the Japanese
support, but I don't know anything better :-(

Thanks,
Devendra

Created an attachment (id=557)
 --> (http://bugs.kde.org/attachment.cgi?id=557&action=view)
p1



More information about the konsole-devel mailing list