Mingming, thanks for the comments. I suspect that the user's settings in fontconfig are not being honored when an application asserts a setting. This needs to be addressed. It indeed might be a libcairo thing. There is still alot of work going on in the new rendering pipeline so perhaps when the dust clears, so to speak, this issue will be resolved and there will be a "new" place where this kind of setting is supposed to be asserted.
Mingming wrote: > Could this be a bug of libcairo? Because after comment one line of code > in libcairo, the hintstyle sets in ~/.fonts.conf makes effect. I > reported it to libcairo, Bug #209256, but got no response. > > I'd like to render my fonts in different hintstyles. > > To be precise, I have chinese font and western language fonts. For the > chinese font, I'd like it to be rendered in hintfull, but for other > fonts, I'd prefer hintslight. > > Ok, I configured in the fontconfig file, but it didn't make any change. > All the fonts are in the same hintstyle, depending on the configuration > in gnome-appearance-properties. > > I googled for quite a long time and finally I got one solution. > > In the file cairo-ft-font.c, in function _cairo_ft_options_merge, just > comment the following line: > > // if (options->base.hint_style == CAIRO_HINT_STYLE_DEFAULT) > > and recompile, now everything works fine. The fonts are rendered > according to the hintstyles configured in fontconfig. > > I don't know if this is really a bug of libcairo. If I'm wrong, please > accept my apology. > > -- > fontconfig does not honor hintslight, hintmedium, hintfull > https://bugs.launchpad.net/bugs/200707 > You received this bug notification because you are a direct subscriber > of the bug. > > Status in Source Package "fontconfig" in Ubuntu: New > > Bug description: > Binary package hint: fontconfig > > fontconfig-2.4.2-1.2ubuntu4 does not honor hintslight, hintmedium, > hintfull options for the autohinter. > When I ask fontconfig to use the authinter and specify hintstyle as > hintslight, hintmedium, or hintfull there is no perceptible difference > on the screen. Doing this on a similar Fedora 8 system shows > perceptible differences with all settings. > I also tried downloading and compiling freetype2 with the bytecode > interpreter forced "off" so the autohinter is always used. The font > rendering is certainly the autohinter but there is again no perceptible > difference between hintslight, hintmedium, and hintfull. > I suspect but cannot prove that this might be the result of the > fontconfig "hack" that was made to enable/disable the legacy LCD filter > for monospaced fonts in gutsy. > > Ubuntu 7.10 (gutsy) > > -- fontconfig does not honor hintslight, hintmedium, hintfull https://bugs.launchpad.net/bugs/200707 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs