[Fontconfig] Strange behaviour with fixed pitch
Sat, 15 Feb 2003 18:13:08 +0000
=2D----BEGIN PGP SIGNED MESSAGE-----
On Sunday 02 Feb 2003 8:12 pm, Alan Chandler wrote:
> On Sunday 26 Jan 2003 4:51 pm, Alan Chandler wrote:
> > I am not sure that I have found the right place to ask this question.
> > A few weeks ago, I installed fontconfig (Debian Unstable), with (I assu=
> > - and thats why I am not sure I am at the right place) libxft2.
> > Since then, I have had a strange problem in kde (konsole) with the
> > console font that it provides (see
> > http://bugs.kde.org/show_bug.cgi?id=3D52538 )
> Nobody replied to this posting so I STILL don't know if I am at the right
AND nobody replied to the second posting either:-( - BUT NOW IT THINK I AM =
THE RIGHT PLACE.
I have been digging away some more, and in particular in fcmatch.c to find =
what is happening. I think the problem is that this routine is trying to=20
compare font patterns with a priority order of foundary, character set,=20
family (strong), language, family (weak) ...
It does not find the console font as an exact match - what appears to happe=
is that it does find a match with console, but in the fonts pattern there a=
a number of elements. For the third element font.elt->object =3D "famil=
but the font.elt->values->value has a string value of "console8x16.pcf"=
(and there are no more values attached to family). The verdana font is=20
eventally seen as a closer match although it only matches on the weak famil=
name (I think this has been added to the requesting pattern by fontconfig a=
a result of a Style request from a high level routine for "sans" [and=20
translated into sans-serif by fontconfig, and then translated [ie replaced =
he pattern] to a list of weak matching font names].
The filename in /usr/share/fonts is console8x16.pcf.gz - but if I do a=20
xlsfonts - the family name in these fonts is shown as "console". This=20
differs from what fontconfig finds.
I need to find how the "font patterns" are set up from the fonts. Can someo=
explain how this works? [In broad terms only, I can delve into the right bi=
of code one I find it]
=2D----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
=2D----END PGP SIGNATURE-----