Bugzilla – Bug 130350
'Andale Sans' font should be added to black/white rendered fonts
Last modified: 2005-10-27 14:04:52 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.)
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.
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.
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.