Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 1

Qt-interest Archive, May 2007
Font Rendering problem in win32


Message 1 in thread

Hi!

First of all, sorry for my bad English.

In my application, I use QCommonStyle, with my own stylesheet.
In Linux (Gentoo, Qt 4.2.2) everything looks fine (top).

In Windows (WinXP, Qt 4.2.3 OSEdition), the font looks little crappy (bottom).

Can I do something, to resolve it?

tr3w

Attachment:

Attachment: linux_vs_win32.png
Description: PNG image


Message 2 in thread

Hi,

> In my application, I use QCommonStyle, with my own stylesheet.
> In Linux (Gentoo, Qt 4.2.2) everything looks fine (top).

Do you mean this related to the style you're using?

> In Windows (WinXP, Qt 4.2.3 OSEdition), the font looks little crappy 
> (bottom).

Which font is this? How do you specify it?

--
 [ signature omitted ] 

Message 3 in thread

Hi!

Sorry for my late answer.

> > In my application, I use QCommonStyle, with my own stylesheet.
> > In Linux (Gentoo, Qt 4.2.2) everything looks fine (top).
>
> Do you mean this related to the style you're using?
No, I don't think.
I tested it with QCDEStyle and QWindowsStyle.

> > In Windows (WinXP, Qt 4.2.3 OSEdition), the font looks little crappy
> > (bottom).
> Which font is this? How do you specify it?
Arial, but it tested with default, and Times New Roman.

I use style sheet like this:

BigButton
{
      color: white;
      border-image: url(:btn01_normal_blue);
      font-family: "Arial";
      font-weight: bold;
      font-size: 20px;
}

I tested Style Sheet example (Qt\4.2.3\examples\widgets\stylesheet\),
modified the coffee style with this:
QLabel {
  color: white;
  font: "Arial";
  font-weight: bold;
  font-size: 22px;
}

QWidget {
  color: white;
  background: black;
}

and got the same result.
I think this is a font rendering engine related problem.

tr3w

--
 [ signature omitted ]