Bug 1570 - Subpixel Hinting support for Cairo
Summary: Subpixel Hinting support for Cairo
Status: RESOLVED WONTFIX
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 1
Hardware: i586 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-04 05:18 CEST by Anshul Jain
Modified: 2011-11-13 09:43 CET (History)
1 user (show)

See Also:
Source RPM: fontconfig-2.8.0-5.mga1
CVE:
Status comment:


Attachments
config file to enable subpixel rendering through cairo (343 bytes, application/octet-stream)
2011-06-04 05:21 CEST, Anshul Jain
Details

Description Anshul Jain 2011-06-04 05:18:36 CEST
Description of problem:

The existing libfreetype6 is built with the bytecode interpreter support enabled...but has subpixel hinting disabled. By enabling subpixel hinting all Qt/KDE apps have perfect subpixel rendered fonts, but the GTK/GNOME ones are still fuzzy. This can be easily rectified by adding a 10-lcd-filter.conf file in /etc/fonts/conf.avail with a symlink to /etc/fonts/conf.d. The contents of this file are :-

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!-- Enable freetype's new subpixel filter. Currently, only a cairo
version containing the patches from freedesktop #10301 respects this
setting. -->
<match target="font">
<edit mode="assign" name="lcdfilter">
<const>lcddefault</const>
</edit>
</match>
</fontconfig>
 
This would round off the whole font rendering cycle as cairo respects this setting through fontconfig (fdo # 10301). A screenshot with GTK apps enabling subpixel support :- http://www.imagebam.com/image/c6273b135062324
Comment 1 Anshul Jain 2011-06-04 05:21:22 CEST
Created attachment 514 [details]
config file to enable subpixel rendering through cairo
Comment 2 Ahmad Samir 2011-06-04 05:33:40 CEST
Actually Qt4 apps aren't affected at all by whether the runtime freetype2 is built with sub-pixel rendering or not; as actually Qt4 has a _build time_ check, if the freetype2 package installed when building qt4 doesn't have sub-pixel rendering enabled, Qt4 uses its internal rendering code (which is the same as the code that was in Cairo, and was changed when Cairo upstream applied the freetype2 patches, as you can see from fdo #10301).

I think this is a duplicate of bug 1549, i.e. it'll be resolved by the Tainted freetype2 build.

As for providing 10-lcd-filter.conf, I don't think enforcing lcddefault is optimum, we should just leave it as whatever upstream default is (IINM the upstream default is still lcdlegacy); and users who want to tweak it can either edit ~/.fonts.conf or use a global config file.
Comment 3 Marja Van Waes 2011-10-17 21:34:50 CEST
(In reply to comment #2)

> I think this is a duplicate of bug 1549, i.e. it'll be resolved by the Tainted
> freetype2 build.
> 
And bug 1549 was a duplicate of 1909, which got fixed.

So, is the problem resolved, now?

CC: (none) => marja11

Comment 4 Marja Van Waes 2011-11-13 09:43:23 CET
(In reply to comment #2)

> I think this is a duplicate of bug 1549, i.e. it'll be resolved by the Tainted
> freetype2 build.
> 
Bug 1549 was a duplicate of bug 1909 (really the other way around, of course), that issue got solved

> As for providing 10-lcd-filter.conf, I don't think enforcing lcddefault is
> optimum, we should just leave it as whatever upstream default is (IINM the
> upstream default is still lcdlegacy); and users who want to tweak it can either
> edit ~/.fonts.conf or use a global config file.

and this won't be done

So this bug report can be closed, I choose "wontfix" for the second issue instead of "duplicate" for the first, because before Ahmad chose not to set this bug report to the "resolved-duplicate" status

Status: NEW => RESOLVED
Resolution: (none) => WONTFIX


Note You need to log in before you can comment on or make changes to this bug.