Sections

Why is my text not antialiased?

Entry number: 662 - Why is my text not antialiased?

Answer:

Text antialiasing in Qt is based on the underlying font system. If a font not being antialiased it is most likely because it is a bitmap font or because the underlying system does not support it. On X11 for instance, Xft is required to draw antialised fonts.

It is possible to specify a style strategy to QFont, using QFont::StyleStrategy, which can be a hint to tell the font not to use a bitmap font. Depending on the fonts available on the system and the font family specified, this may or may not work.

On Windows 2000 fonts are usually not antialiased within a certain range (say sizes 8-16) to make text more crisp and readable.

back

Patron of KDECustomers

Customers