From koffice-devel Tue Jun 17 01:46:34 2003 From: James Richard Tyrer Date: Tue, 17 Jun 2003 01:46:34 +0000 To: koffice-devel Subject: Re: karbon, kpainter and kword X-MARC-Message: https://marc.info/?l=koffice-devel&m=105583473724759 Tomasz Grobelny wrote: > On poniedzia?ek 16 czerwca 2003 09:43, James Richard Tyrer wrote: > >>Tomasz Grobelny wrote: >> >>>The thing that I really miss in KWord is high quality text printing. >>>Looking at (not so) recent discussions on this list I assume that karbon >>>has it's own rendering classes. Karbon isn't able to print anything >>>though. Would it be hard to add printing support and use Karbon's paint >>>device in KWord? >> >>There is a not so simple way to fix this. >> > > I guess you are right :-( > > >>Do NOT use KWord to render your text, use GhostScript. >> > > It's not my problem. The glyphs themselves are perfectly ok, but spacing > between them is a problem. I guess QPainter has too little precision to > handle independently positioned letters. For example after each 'w' I get a > thin space (which is of course too much-there should be none). I see, that problem. I assume from what you are saying that it is not just a failure to use kerning data but a failure to space the letters properly. This could get ugly. :-) The problem is still that KWord chooses to do this rather than letting GhostScript (or other RIP or a PS printer) do this. But, you can't turn this off. If you print to a PostScript file and open it with text editor, you will see that the text of your document is NOT there. Also: "ps2ascii" will not work on the file because the text ISN'T THERE. :-( The PostScript interpreter is fully capable of spacing the letters according to information contained in the font. But, KWord doesn't work this way. IIUC, this is because Qt doesn't work this way. :-( Instead, it does something strange that I don't understand since I am not a PostScript expert. IMHO, this is simply NOT the best way to do it. My $0.02 for what it is worth. -- JRT _______________________________________________ koffice-devel mailing list koffice-devel@mail.kde.org http://mail.kde.org/mailman/listinfo/koffice-devel