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

List:       kde-devel
Subject:    Re: Qt/KDE  PS files have WRONG font names
From:       James Richard Tyrer <tyrerj () acm ! org>
Date:       2003-08-03 21:27:19
[Download RAW message or body]

Chris Howells wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hi,
> 
> On Sunday 03 August 2003 19:36, James Richard Tyrer wrote:
> 
>>I presume that the generation of a PostScript files starts with methods in
>>KDELibs somewhere.  Could someone please help me out with this?
> 
> 
> PostScript generation is done by Qt, file a bug report with TrollTech.

Yes, I know that.  But, don't you have to tell: "QPainter" which font to use for: "drawText"?

This (slightly edited) was posted by Stephan Kulow:

http://bugs.kde.org/attachment.cgi?id=1872&action=view
http://bugs.kde.org/show_bug.cgi?id=60105

public slots:
     void prnt()
     {
	QPrinter pr;
	if (pr.setup()) {
	    QPainter p(&pr);Does this have anything to do with the problem?
	    QFont f1("Times New Roman PS");
	    p.setFont(f1);
	    p.drawText(0, 0, "Foo and bar");
	    QFont f2("Comic Sans MS");
	    p.setFont(f2);
	    p.drawText(0, 40, "More text");
	}
     }
};

This snippet of code is using the font name rather than the PostScript font name.

Is this the problem? that Qpainter is being passed the wrong font name?

Or, OTOH, if Qpainter is supposed to use the font name to fetch the PostScript font name, 
then that is the problem.

--
JRT


 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

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