[prev in list] [next in list] [prev in thread] [next in thread]
List: koffice-devel
Subject: Re: [Issue N21406] Qt bug in font loader: doesn't manage to select
From: qt-bugs () trolltech ! com
Date: 2003-05-02 12:02:38
[Download RAW message or body]
On Tuesday, 29. Apr 2003 03:04 David Faure wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
Hello David,
> Qt-3.1.2
>
> One bug and one patch for the font loading mechanism, when XFT is
> _not_ present. First, I found the obvious following typo when trying
> to debug the problem described below:
>
> Index: qfont_x11.cpp
> ===================================================================
> RCS file: /home/kde/qt-copy/src/kernel/qfont_x11.cpp,v
> retrieving revision 1.79
> diff -u -p -r1.79 qfont_x11.cpp
> - --- qfont_x11.cpp 3 Mar 2003 16:44:36 -0000 1.79
> +++ qfont_x11.cpp 29 Apr 2003 00:44:37 -0000
> @@ -1973,7 +1973,7 @@ QCString QFontPrivate::bestMatch( const
> tokens[Spacing],
> tokens[CharsetRegistry],
> tokens[CharsetEncoding] );
> - - best.scale = bestScalable.score;
> + best.score = bestScalable.score;
> best.scale = bestScalable.scale;
> best.name = bestName.data();
> }
>
> However this doesn't fix my bug.
Ahh, probably a tab-completion error. I have fixed this. :)
> On this system (no RENDER extension -> no libXft being used), I have
> the font
> - -ms-arial-medium-r-normal--0-0-0-0-p-0-iso8859-1
> which is smoothly-scalable, and seen by QFontDatabase.
> I have no ms-arial font in another charset.
The problem you describe below is a known problem. We are in the
process of preparing the first 3.2.0 beta, which will fix this
particular problem. However, I don't think this is something that can
be fixed in 3.1.x, due to the current text/font engine design.
Even though you have a smoothly scalable Arial font, Qt will ignore it
because it is not a Unicode encoded font.
[snip]
> It considers the non-scalable helvetica unicode font "good enough" and
> doesn't even try to find the latin1 arial font...
>
> I remember Lars saying "if ForceOutline gets you a bitmap font there's
> definitely a bug". I'm afraid that's the case.
I agree with this, I will have to investigate this more with Lars, but
as I mention above, I don't think this will be fixable in 3.1.x. 3.2.0
and beyond will work properly though.
> Thanks for fixing, this is creating *much* trouble in KWord (users
> select a font in the font dialog, and end up with another one, which
> doesn't scale at all when zooming...).
>
> - --
> David FAURE, faure@kde.org, sponsored by TrollTech to work on KDE,
> Konqueror (http://www.konqueror.org), and KOffice
> (http://www.koffice.org).
> How to write a Makefile.am for KDE/Qt code:
> http://developer.kde.org/documentation/other/makefile_am_howto.html
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.0.7 (GNU/Linux)
>
> iD8DBQE+rc+I72KcVAmwbhARAvvtAJ9xXVP9cON/OiBSQ3l7pSBE3diR1gCffXj9
> cwh/XfkpXrkPz8fvWt9A04Q=
> =E2ZF
> -----END PGP SIGNATURE-----
>
--
Bradley T Hughes
Trolltech AS, Waldemar Thranes gt. 98, N-0175 Oslo, Norway
_______________________________________________
koffice-devel mailing list
koffice-devel@mail.kde.org
http://mail.kde.org/mailman/listinfo/koffice-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic