LyX needs help: Broken font metrics computation

Michael Schmitt michael.schmitt at teststep.org
Wed Jan 5 18:20:36 CET 2005


Jean-Marc,

> Michael, a quick question: are you sure of your test program?

No, I am not sure. I just tried to create the smallest possible test case 
that does not crash and produces some "reasonable" output. To make sure we 
are not hunting a phantom, we can use the Qt example "examples/drawdemo/" 
and inject the code of the test case.

> While
> googling I found a message saying that asking for a font metrics
> without a properly set QPainter was asking for trouble... Shouldn't
> you use one?
>
> Also, is the "times" font that you use a truetype one? I ask because I
> found the following change in qt 3.3 here
> http://www.google.fr/search?q=cache:mMYbZOysSPQJ:www.qbssoftware.com/product_info.asp%3Fcurrent%3DDETAILEDINFO%26product%3Dqt+qfontmetrics+qt+3.3&hl=fr
>
>
> * QFontMetrics: (Windows only) fixed QFontMetrics::boundingRect(
>   QChar c ) to work for non-TrueType fonts
>
> I am not sure what it means, and I have not been able to find this
> information on trolltech's site.

Me neither...

Michael 



More information about the kde-cygwin mailing list