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

List:       kde-devel
Subject:    [Fwd: Linux: Qt-x11: qpsprinter module question.]
From:       James Richard Tyrer <tyrerj () acm ! org>
Date:       2003-08-28 8:05:51
[Download RAW message or body]

Well nobody answered this on the Qt list.

Does anybody here know the answer or where to look for it.

I presume that: "xscale" refers to the font width but don't find it in the 
font header.

--
JRT

["Linux: Qt-x11: qpsprinter module question." (message/rfc822)]

Return-Path: <owner-qt-interest@trolltech.com>
Received: from alias.acm.org ([199.222.69.90])
	by emu (EarthLink SMTP Server) with ESMTP id 19PNNj5Uq3NZFnx0
	for <TYRERJ@earthlink.net>; Thu, 21 Aug 2003 04:39:57 -0700 (PDT)
Received: from lupinella.troll.no ([80.232.37.59])
        by alias.acm.org (ACM Email Forwarding Service) with ESMTP id COB73880
        for <tyrerj@acm.org>; Thu, 21 Aug 2003 07:39:57 -0400
Received: by trolltech.com id <S35338AbTHULjg>;
        Thu, 21 Aug 2003 13:39:36 +0200
Sender: owner-qt-interest@trolltech.com
Precedence: list
X-Loop: qt-interest
Message-ID: <3F44AF47.5090601@acm.org>
Date: Thu, 21 Aug 2003 04:38:47 -0700
From: James Richard Tyrer <tyrerj@acm.org>
User-Agent: Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.4) Gecko/20030624
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: qt-interest@trolltech.com
Subject: Linux: Qt-x11: qpsprinter module question.
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Reply-To: tyrerj@acm.org

The file: "qsprinter.cpp" has this code:

struct psfont {
     const char *psname;
     float slant;
     float xscale;
};

static const psfont Arial[] = {
     {"Arial", 0, 84.04 },
     { "Arial-Italic", 0, 84.04 },
     { "Arial-Bold", 0, 88.65 },
     { "Arial-BoldItalic", 0, 88.65 }
};


Simple question: what font parameter is used to determine the value for: 
"xscale"? -- so that I can add additional fonts.

I note that: "Courier" has an: "xscale" of 100:

static const psfont Courier [] = {
     { "Courier", 0, 100. },
     { "Courier-Oblique", 0, 100. },
     { "Courier-Bold", 0, 100. },
     { "Courier-BoldOblique", 0, 100. }
};

But I have several sizes of Courier available. :-(

--
JRT

--
List archive and information: http://lists.trolltech.com/qt-interest/




>> 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