Raimund Steger
2011-Jan-31 23:32 UTC
[Fontconfig] Unable to select bitmap Helvetica over Type1 in newer fontconfig
Dear list, I currently have an issue after having upgraded to fontconfig-2.8.0 from my (admittedly very old) version 2.5.0 on a Solaris 10 system. The issue might have been brought up before, in which case I apologize. On this system, the classic X11 fonts Adobe Courier, Helvetica, and Times are available in both Type1 as well as PCF versions. For the typical screen sizes, the PCF versions look a lot better than Type1. Until now, I have been able to select the bitmap versions by specifying exact pixelsize and ''outline=false:antialias=false'' in the pattern. But starting with 2.7.0 (as I''ve tested), this does not work anymore; fontconfig *always* selects the Type1 versions. When I debug the match with FC_DEBUG=3, I notice that starting with fontconfig-2.7.0, the match for Helvetica.pfa (the Type1 version) seems to get a ''0'' score for pixelsize, whereas the bitmap version has ''1'' (1 meaning ''equals'', 0 meaning ''not specified'', I guess?). If this should be the reason -- then how can I force the PCF version? The ''outline'' attribute does not seem to have high enough priority to outweigh pixelsize in this case. Thanks a lot, Raimund -- R.Steger Tel. +49-179-2981632 icq 16845346