Version: Unbekannt (using KDE 3.1.0) Installed from: compiled sources Compiler: gcc version 3.2.1 OS: Linux (i686) release 2.4.21-pre4 I want to print some text with kedit (or kate). If I select Times New Roman, Arial or Courier New (all are TTF's), the ps-file uses always the same font: Verdana. The font on the screen in kedit is the correct one. If I use e.g. Zapf Human, kedit uses really Zapf Human for printing. I tried to debug the problem but got stuck in QT (version 3.1.1). My entrypoint was in kedit.cpp the method void TopLevel::print(). I tested, if kedit gives the correct font for printing to the KPrinter object. I couldn't find no error at this point, but I found, that the method QFont::rawName fails for e.g. Times New Roman. This is the result of rawName if it's working: Courier-12:render=True:style=Regular:slant=0:weight=100:pixelsize=14.0138:spacing=100:foundry=bitstream:antialias=True:hinting=True:verticallayout=False:autohint=False:globaladvance=True:index=0:outline=True:scalable=True:dpi=84.0828:rgba=1:scale=1:minspace=False:charset= |>^1!|>^1!P0oWQ |>]![|>^1!|>^1!!!!%#|75TItBOAj|%(cCOq6YT!!K?& !!!)$ 9;*f! !!!.% !C3c.!(CUL!!!#& !!#0GML3F5*)/J.!!!!5s<..R !!#3H !!!!nMW<gJ !%A5F!%J<G !!#6I;s.Pr(1+k7!!!%#!!!!Z !!#AL(P9Wa(2oHj|>T)!!!#0F !!!!# !!#DM !!!!(!!!LG !!+fv !!!%(!!+u{!!!!F :lang=aa|ast|ay|bi|br|ca|ch|co|cs|da|de|en|eo|es|et|eu|fi|fj|fo|fr|fur|fy|gd|gl|gv|ho|hu|ia|id|ie|io|is|it|ki|kl|lb|lt|mg|mt|nb|nl|nn|no|oc|om|pl|pt|rm|sk|sma|smj|so|sq|sv|sw|tn|tr|ts|vo|vot|wa|wen|wo|xh|yap|zu:fontversion=0 This is the output with Arial e.g.:
I think I'm seeing this bug also. In any KDE app that can print (konqueror, kdevelop, kword, kwrite, etc.) selecting either "Courier New" or "Times New Roman" produces correct results on the screen, but LuxiSans when printed (i.e. that's what winds up in the PS file when printed to a file). All other TrueType fonts I have installed work correctly both on-screen and when printed, it appears to be only these two that don't. As both these fonts are quite common, this is a rather annoying problem. Redhat 8.0 on Intel, qt-3.1.1, kde-3.1 (both obtained from http://kde-redhat.sourceforge.net/). Thanks, Mark
Can anyone confirm this is still a problem with HEAD? There have been numerous fixes in Qt 3.2.
yes, that's fixed with qt 3.2 - and was always only a problem with xft2
Closing old Resolved status bug.