[Qt-qml] QML Font Rending With OpenGl

michael.brasser at nokia.com michael.brasser at nokia.com
Fri Jul 1 03:49:36 CEST 2011


Hi,

In that period the Text element was changed to use something like QStaticText internally (rather than caching text in a pixmap), so that is one very likely culprit. There is an environmental variable to reenable the caching if you want to see if that fixes the issue: QML_ENABLE_TEXT_IMAGE_CACHE.

I'd also suggest raising a bug on bugreports.qt.nokia.com (with machine details, etc), so we can verify whether this has been fixed in 4.7.4 or is still an issue.

Regards,
Michael

On 25/06/2011, at 3:47 AM, ext Michael Dippold wrote:

> I am having some trouble with font rendering in Linux with Qt 4.7.3 (It seemed to work ok with Qt 4.7.0).  Using graphic system native or raster, the font looks perfect, when -opengl is passed the font is not rendered correctly.  See attached good/bad.jpg.  
> 
> Text{
>   text: "This Is A Font Test"
>    anchors.fill: parent
> horizontalAlignment: Text.AlignHCenter
> wrapMode: Text.WordWrap
>   verticalAlignment: Text.AlignTop   
> }
> 
> When I remove the alignment properties & wrapMode it seems to render fine.  Any clues on where I should start looking first?  
> 
> Thanks,
> Mike
> 
> <good.jpg><bad.jpg><ATT00001..txt>



More information about the Qt-qml mailing list