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

List:       koffice
Subject:    Bug#29900: Fwd: Bug#29900: Oblique Fonts don't work
From:       David Faure <david () mandrakesoft ! com>
Date:       2001-07-28 20:16:32
[Download RAW message or body]

Definitely a Qt issue.

----------  Forwarded Message  ----------

Subject: Bug#29900: Oblique Fonts don't work
Date: Sat, 28 Jul 2001 12:44:59 -0700
From: James Richard Tyrer <tyrerj@acm.org>
To: 29900@bugs.kde.org

David Faure wrote:
> 
> On Saturday 28 July 2001 03:29, tyrerj@acm.org wrote:
> > Package: koffice
> > Version: 1.1 CVS downloaded today (using KDE 2.2.0 CVS/CVSup/Snapshot)
> > Severity: normal
> > Installed from:    Compiled sources
> > Compiler:          2.96-85
> > OS:                Linux
> > OS/Compiler notes: Red Hat RPM
> >
> > When using Adobe Courier, the 'Italic" button has no effect.
> >
> > When using Adobe Helvetica, the font displayed for 'Italic' is Helvetica 
> > Narrow Oblique.
> >
> > Note: Adobe Times New Roman PS works correctly.
> >
> > Probably a problem with 'Oblique'
> 
> Probably a problem with those fonts, I don't think we can do anything about 
> that !
> 
The same fonts work OK in the current snapshot of OpenOffice.  You might
need to use the menu rather than just the 'button', but it appears to
work correctly with the 'buttons'.

Without actually looking at the code, my guess is that KWord does not
look for the font attribute 'oblique' when parsing the font information.

From: "fonts.dir":

cob_____.pfb -adobe-courier-bold-r-normal--0-0-0-0-m-0-iso8859-1
cobo____.pfb -adobe-courier-bold-o-normal--0-0-0-0-m-0-iso8859-1
com_____.pfb -adobe-courier-medium-r-normal--0-0-0-0-m-0-iso8859-1
coo_____.pfb -adobe-courier-medium-o-normal--0-0-0-0-m-0-iso8859-1

hv______.pfb -adobe-helvetica-medium-r-normal--0-0-0-0-p-0-iso8859-1
hvb_____.pfb -adobe-helvetica-bold-r-normal--0-0-0-0-p-0-iso8859-1
hvbo____.pfb -adobe-helvetica-bold-o-normal--0-0-0-0-p-0-iso8859-1
hvn_____.pfb -urw-helvetica-medium-r-narrow--0-0-0-0-p-0-iso8859-1
hvnb____.pfb -urw-helvetica-bold-r-narrow--0-0-0-0-p-0-iso8859-1
hvnbo___.pfb -urw-helvetica-bold-o-narrow--0-0-0-0-p-0-iso8859-1
hvno____.pfb -urw-helvetica-medium-o-narrow--0-0-0-0-p-0-iso8859-1
hvo_____.pfb -adobe-helvetica-medium-o-normal--0-0-0-0-p-0-iso8859-1

_eb_____.pfb -monotype-times new roman
ps-bold-r-normal--0-0-0-0-p-0-iso8859-1
_ebi____.pfb -monotype-times new roman
ps-bold-i-normal--0-0-0-0-p-0-iso8859-1
_ei_____.pfb -monotype-times new roman
ps-medium-i-normal--0-0-0-0-p-0-iso8859-1
_er_____.pfb -monotype-times new roman
ps-medium-r-normal--0-0-0-0-p-0-iso8859-1

The italic problem would appear to be quite simple.  Courier and
Helvetica are using an 'o' instead of an 'i' to indicate 'italic'
(fourth column in the XLFD) because they are actually called 'oblique'. 
Just check for an 'o' or an 'i'.

The problem with Helvetica is a little more complicated.  There are two
types of Helvetica (fifth column in the XLFD): 'normal' and 'narrow'
which need to be treated as separate fonts.

Note that Times New Roman has a face called 'italic' and (fourth column
of the XLFD) uses an 'i'.

Since Courier and Helvetica are some of the 35 standard PostScript
fonts, this is going to need to be fixed.

The optimum solution woud have the font formatting widget show 'oblique'
rather than 'italic' for fonts that are called that.

James Richard Tyrer



-------------------------------------------------------

-- 
David FAURE, david@mandrakesoft.com, faure@kde.org
http://perso.mandrakesoft.com/~david/, http://www.konqueror.org/
KDE, Making The Future of Computing Available Today

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

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