Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Can not enable subpixel rendering
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
yufw
n00b
n00b


Joined: 11 Nov 2013
Posts: 57

PostPosted: Tue Jun 17, 2014 2:24 am    Post subject: [SOLVED] Can not enable subpixel rendering Reply with quote

I have the following configuration in ~/.config/fontconfig/fonts.conf,
Code:
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
  <match target="font">
    <edit mode="assign" name="antialias">
      <bool>true</bool>
    </edit>
    <edit mode="assign" name="hinting">
      <bool>true</bool>
    </edit>
    <edit name="autohint" mode="assign">
      <bool>false</bool>
    </edit>
    <edit mode="assign" name="hintstyle">
      <const>hintslight</const>
    </edit>
    <edit mode="assign" name="rgba">
      <const>rgb</const>
    </edit>
    <edit mode="assign" name="lcdfilter">
      <const>lcdnone</const>
    </edit>
  </match>
</fontconfig>

The anti-aliasing and hinting work pretty well, but subpixel rendering seems not work at all, even with lcdfilter set to lcdnone, I can not see the color fringing. Here is a screenshot of gedit with Ubuntu Mono 13, https://i.imgur.com/rrRMtFR.png. If you zoom in this picture, you can clearly see that it only has grayscale anti-aliasing, not subpixel smoothing.

This monitor has a resolution of 1366 x 768, so subpixel rendering may improve the quality of font rendering. Any help is appreciated.


Last edited by yufw on Wed Jun 18, 2014 6:15 am; edited 1 time in total
Back to top
View user's profile Send private message
yufw
n00b
n00b


Joined: 11 Nov 2013
Posts: 57

PostPosted: Tue Jun 17, 2014 10:52 am    Post subject: Reply with quote

According to the Gentoo wiki,
Quote:
The 'bindist' USE flag in media-libs/freetype disables sub-pixel rendering altogether due to potential patenting issues.
Just disable it and it works.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum