[prev in list] [next in list] [prev in thread] [next in thread] 

List:       koffice-devel
Subject:    Re: karbon, kpainter and kword
From:       James Richard Tyrer <tyrerj () acm ! org>
Date:       2003-06-17 1:46:34
[Download RAW message or body]

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
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic