different hintstyle issue
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cairo |
Confirmed
|
Low
|
|||
cairo (Ubuntu) |
Triaged
|
Wishlist
|
Unassigned |
Bug Description
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-appearanc
I googled for quite a long time and finally I got one solution.
In the file cairo-ft-font.c, in function _cairo_
// if (options-
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.
Changed in libcairo: | |
importance: | Undecided → Wishlist |
Changed in libcairo: | |
status: | Unknown → Confirmed |
Changed in cairo (Ubuntu): | |
status: | New → Triaged |
tags: | added: patch |
Changed in libcairo: | |
importance: | Unknown → Low |
Changed in libcairo: | |
importance: | Low → Unknown |
Changed in libcairo: | |
importance: | Unknown → Low |
affects: | libcairo → cairo |
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-appearanc e-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.