[Fontconfig] Use of the "Additional Style" Field

Alan Chandler fontconfig@fontconfig.org
Sun, 23 Feb 2003 10:28:10 +0000


=2D----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I am trying to find out why, when left to its own devices, KDE's konsole is=
=20
choosing to display a rather strange font.  Its picking up font=20
/usr/X11R6/lib/X11/fonts/misc/12x13ja.pcf.gz
as the default font.  This is part of Debian's base fonts package, but suff=
ers=20
from being rather ugly.

As far as the XLFD is concerned this font should fit what is needed (family=
,=20
font size etc) EXCEPT for the Additional Style Field having the characters=
=20
"ja" in them. There are other fonts which fit the bill, which do not have a=
ny=20
additional style field, but also look nicer.

I am tracking my way through fcmatch.c with a debugger looking at what is=20
happening, and effectively the requested font pattern is being compared wit=
h=20
the pattern from every font installed on the system.  I have got to the poi=
nt=20
where the above font is found to be a better match than any other previousl=
y=20
found font and I am examining the "pattern" that this font has.

I can't find any reference to the additional style it within the pattern.  =
The=20
closest "elts[].object" name appears to be "style", but there is only 1 val=
ue=20
for this and that is "regular".

I have also looked at the fonts.cache-1 field for the appropriate directory=
,=20
and I can find no reference in there to the Additional Style property.

Some questions

What exactly does "Additional Style" represent?
Does/should fontconfig use this parameter in its font matching - if so what=
=20
elts[].object name should it use.
The pcf property name in the file is "ADD_STYLE_NAME". Is this correct?




=2D --=20
Alan Chandler
alan@chandlerfamily.org.uk
=2D----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+WKI/uFHxcV2FFoIRAunHAJ4zSdWZXfxOF+Fv1QsJs+2VYcDHKQCgsW99
wKLBkSGpepbZyzA/yS6Xewg=3D
=3DuUy+
=2D----END PGP SIGNATURE-----