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

List:       koffice
Subject:    Koffice FAQ
From:       Donovan Rebbechi <elflord () panix ! com>
Date:       2000-03-01 13:58:42
[Download RAW message or body]


I have a comment on the FAQ ( since you say "if you've tested and it
works, tell me" )  : 

It's about this:

**** QUOTE

6.1. In printout, KOffice replaces some of my fonts with different fonts!

This is a technical problem for which solutions are being
discussed. Probably the fonts you used were TrueType fonts - as
KOffice generates Postscript for printout, you can only use Postscript
fonts; TrueType fonts are replaced by Postscript fonts.
Hopefully this problem will be solved somewhere in the QPrinter class.

Now someone on the koffice-list suggested that ghostscript can be compiled
with TTF-support, which might solve the
problem. I have not tested, if this works. If you tried, please tell me.

******

Now I see the problem.

However, your answer to the FAQ is simply put completely wrong. Postscript
does *not* exclude TrueType.

Here's a better answer:
----
Ghostscript not only can be compiled with TrueType support, most of the
binaries around *are* compiled with TrueType support. However, to make
fonts printable to Koffice, the fonts in question need to be added to the
ghostscript fontmap file, so that ghostscript can "see" the fonts.
 
The same applies to Type1 fonts -- type1 fonts need to be added to
ghostscript in order to be printable via Koffice. It's also important
that the names that Koffice uses ( not always the correct names ) are
mapped to the correct font names.

----

QPrinter seems to "guess" ghostscript font names from the X11 font
names. For example, here's part of my ghostscript fontmap.

/ArialBlack-Roman   /Arial_Black    ;   
/Arnoldboecklin-Roman   /ArnoldBoecklin-ExtraBold   ; 

The names on the left are what QPrinter/QPainter use, the names on the
right are the correct font names.

I can try to make up some kind of script that generates a
ghostscript Fontmap for Koffice once I work out how QPainter/QPrinter  
guess font names. I can also add something on Koffice to the font HOWTO (
http://pegasus.rutgers.edu/~elflord/font_howto/ ) once I've fully
understood how it works.

It would seem that QT needs to step up to the plate and address the
screen/printer font unification problems. This essentially requires some
kind of database that maps X11 font names to font shape files, and
groups the fonts into families ( this is what Star Office and Applixware
do at the moment )

-- 
Donovan, author of the font HOWTO

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

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