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

List:       kde-devel
Subject:    Re: Fonts ... ARGH!!!
From:       Craig Drummond <Craig.Drummond () gmx ! net>
Date:       2003-08-03 12:32:40
[Download RAW message or body]

> Craig Drummond has apparently changed his code so that it adds various
> aliases for the font.  That is, the first four entries for each family are
> the correct PostScript font names.  These are followed by various
> variations as a work around for the fact that KWord (and probably other KDE
> applications) doesn't get the PostScript font names correct.
>
> He has done a good job, but I don't think that this is the way to do it. 
> Why is it that if his code can get the correct PostScript font names then
> why can't other KDE applications get the correct names?  IIUC, the
> FreeType2 library will get the PostScript name for you if you have told it
> where the font is.  And that XFT[2]/FontConfig will tell you the location
> of the font.

The reason being not every app is compiled against FreeType2. KDE and Qt don't 
require FreeType/Xft as far as I'm aware. Hence the aliases are neccessary.

My code can read the PS name as I read the actual .ttf files - Qt/KDE do not.

Perhaps you should file a bug report with Qt? ie. get them to try and open the 
TTF file to get the real PS name if the font is not embedded.

> Or perhaps someone just doesn't realize that the "Full Font name" and the
> "Postscript name" are NOT the same -- you can't just remove the blanks.

Nope. I don't think fontconfig access the PS name, hence the aliases will be 
required. But I guess you can get this via the method above.

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