Bug 130350

Summary: 'Andale Sans' font should be added to black/white rendered fonts
Product: [openSUSE] SUSE LINUX 10.0 Reporter: Forgotten User sxozS5NPY1 <forgotten_sxozS5NPY1>
Component: X11 ApplicationsAssignee: Mike Fabian <mfabian>
Status: RESOLVED FIXED QA Contact: Stefan Dirsch <sndirsch>
Severity: Minor    
Priority: P5 - None    
Version: Final   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: Customer Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Forgotten User sxozS5NPY1 2005-10-24 18:26:00 UTC
Hello,

in /etc/sysconfig/fonts there's a variable BYTECODE_BW_MAX_PIXEL which allows to
specify a value so that hinted fonts don't get anti-aliased but get rendered
black & white. SuSEconfig generates /etc/fonts/suse-hinting.conf from this
configuration.

This is applied only to fonts which contain hints using the byte code
interpreter. This fonts are hardcoded because it's not possible to determine the
fonts at runtime.

Some fonts of the agfa-fonts package are in this list, but "Andale Sans" is
missing. But it contains hinting information (without, it would look ugly), so
it should be added to this list.

It would be even great if users could specify own fonts somewhere in a
configuration file, but that's out of the scope of this bugreport.

Thanks.

(I think this bug should be assigned to Mike Fabian, but there was no suitable
component so I choosed "X.org". I hope this is correct.)
Comment 1 Mike Fabian 2005-10-27 13:05:16 UTC
OK, I have added not only "Andale Sans" but also the rest of the fonts
in the agfa-fonts package "Andy MT", "Bell MT", and "Monotype Sorts".

I looked at all these fonts rendered with and without byte code interpreter
and with and without anti-aliasing and I have the impression that
all of them have decent byte code.
Comment 2 Mike Fabian 2005-10-27 13:57:57 UTC
fonts-config package with the changed template file submitted
to STABLE. Packages for SUSE 10.0 will be soon on

    ftp://ftp.suse.com/pub/projects/m17n/10.0

Note that there are also experimental package of fontconfig
in that ftp directory. These are from the fontconfig 2.4 branche
and currently very instable and crash often. But you are welcome to
test.

To fix the bug in this report you need to update only the "fonts-config"
package, not "fontconfig". The former contains the template
which is used by SuSEconfig to overwrite /etc/fonts/suse-hinting.conf.
Comment 3 Mike Fabian 2005-10-27 14:04:52 UTC
Bernhard> It would be even great if users could specify own fonts
Bernhard> somewhere in a configuration file, but that's out of the
Bernhard> scope of this bugreport.

If you want to do that, you are already a very advanced user. 
I think for such advanced users it is easy enough to copy
the contents of /etc/fonts/suse-hinting.conf to their
personal config file ~/.fonts.conf and edit there.

If these rules are in ~/.fonts.conf, they have higher priority than
in the system wide file in /etc/fonts/suse-hinting.conf.

Nevertheless it might be useful to add a variable to /etc/sysconfig/fonts-config, maybe something like:

BYTECODE_BW_FONTS_LIST="Andale Mono,Arial,Comic Sans MS,Georgia,Impact,Trebuchet MS,Verdana,Courier New,Times New Roman,Tahoma,Webdings,Albany AMT,Thorndale AMT,Cumberland AMT,Andale Sans,Andy MT,Bell MT,Monotype Sorts"

which can then be edited to set the system wide defaults.

I'm not sure how useful this would be. There are not many fonts
available with good byte code anyway, therefore I do not expect
many changes to the list.

If you really think this is useful, open a new bug report.

Closing this one as FIXED.