[Qt-interest] embedding fonts and using them rather than OS ones

Felipe Ferreri Tonello eu at felipetonello.com
Mon Apr 18 23:03:42 CEST 2011


Hi,

I'm installing some fonts with 
QFontDatabase::addApplicationFont(":/resource/fonts/times.ttf"); from a 
resource file.

after that I want to use this Times New Roman front with QFont instead 
of the OS Times New Roman.

In Linux it seems to work ok, since I'm printing a PDF and printing 
directly to a printer and both fonts are the same. The problem is in 
Windows, the PDF version is bolder(Times New Roman) than the printed 
edition(which is exactly the same as Linux PDF and printed versions)

Any thoughts?

- Felipe Tonello



More information about the Qt-interest-old mailing list