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

List:       koffice
Subject:    Re: KOffice 1.3 alpha?
From:       Nicolas Goutte <nicolasg () snafu ! de>
Date:       2003-03-23 20:06:27
[Download RAW message or body]

The font problem is very serious in my opinion.

Replacing the font at import has the problem that you totally lose the font 
name information and at export you will have a font name untypical for the 
file format.

Personally, I would prefer font substitution but the problem is that it means 
using qtconfig which probably nobody does. And it does not work if we want to 
get rid of bitmap fonts (as bitmap fonts are valid for QT, QT does not 
substitute them.)

I have thought much about this situation but I still have no correct answer. 
Doing our own font substitution in KWord means again much more work (which 
means probably that it is already too late for KOffice 1.3.)

Please note that the problem is not only a problem of import filters. It is 
also a problem between KWords on different systems (especially different 
distributions.)

So may be a font replacement when loading in KWord could be done. It would 
avoid having different solution for each import filter. However this would 
have backdraws too. I think also that the user should have the possibility to 
change the substitution table to avoid unwanted substitutions.

Of course, this problem is not only in KWord, but might apply to the whole 
KOffice.

Have a nice day/evening/night!

On Sunday 23 March 2003 20:23, Ferdinand Gassauer wrote:
> David Faure wrote:
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> > On Sunday 23 March 2003 17:48, Ferdinand Gassauer wrote:
> >> Werner, there are still some serious issues importing w97/xp docs.
> >> - header, footer
> >> - page numbering
> >> - tables
> >> - multi-column (I get only the first page) and this one is not rendered
> >> completely correct.
> >
> > Feel free to send us test documents for all those problems. That would
> > definitely help!
> >
> >> - (optional) font type replacement (IMHO very important, as this is the
> >> "first" impression) - I know it has nothing to to with kword and the
> >> filter
> >
> > The problem of some fonts not being found?
> > I took over whatever Shaheed had in his msword filter, so there is some
> > replacement going on already.
> > See KWordTextHandler::getFont() in texthandler.cpp
> >
> >     static const char* const fuzzyLookup[ENTRIES][2] =
> >     {
> >         // MS contains      X11 font family
> >         // substring.       non-Xft name.
> >         { "times",          "times" },
> >         { "courier",        "courier" },
> >         { "andale",         "monotype" },
> >         { "monotype.com",   "monotype" },
> >         { "georgia",        "times" },
> >         { "helvetica",      "helvetica" }
> >     };
> >
> >     // When Xft is available, Qt will do a good job of looking up our
> >     local // equivalent of the MS font. But, we want to work even without
> >     Xft. // So, first, we do a fuzzy match of some common MS font names.
> >
> > (and then we use QFontInfo to let Qt load a font, so that we write
> > out a font name that really exists in the end - but possibly not the best
> > one).
> >
> > Any suggestions welcome.
>
> If I understood some of the postings correctly koffice only renders certain
> font types correctly. IMHO _all_ imported fonts should be replaced with
> fonts, which are rendered correctly as long as QT does not do it.
> May be all fonts with no matching font set for ms and koffice (native and
> the fuzzy set mentioned above) should be replaced with the font for the
> standard style. eventualy issueing a message that this has been done.
>
> see http://bugs.kde.org/show_bug.cgi?id=56126
>
> > - --
> > David Faure -- faure@kde.org, dfaure@klaralvdalens-datakonsult.se
> > Qt/KDE/KOffice developer
> > Klarälvdalens Datakonsult AB, Platform-independent software solutions
> > -----BEGIN PGP SIGNATURE-----
> > Version: GnuPG v1.0.7 (GNU/Linux)
> >
> > iD8DBQE+ffGw72KcVAmwbhARAg1wAJ9WeR45ri2hy39rq9FYyL+1OpVr9QCfRDIi
> > lxGPFKngPmkmMi6fagXkazg=
> > =wSoX
> > -----END PGP SIGNATURE-----

____________________________________
koffice mailing list
koffice@mail.kde.org
To unsubscribe please visit:
http://mail.kde.org/mailman/listinfo/koffice

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

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