Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved]Font Hinting Configuration Not Working in LXDE
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

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


Joined: 26 Jan 2010
Posts: 43
Location: People's Republic of China

PostPosted: Fri Mar 05, 2010 5:18 am    Post subject: [Solved]Font Hinting Configuration Not Working in LXDE Reply with quote

Solved: After downgrading to x11-libs/cairo-1.8.8- in devnull overlay, the problem is solved (Thanks to PaulBredbury).

Environment:
Clean Gentoo installation (amd64) with "~amd64" as accepted keyword
zen-sources 2.6.32_p6
lxde-meta 0.5.0-r1
openbox-3.4.11 (imlib nls startup-notification -xinerama)
media-libs/fontconfig-2.8.0

Problem:
I have set hintstyle to "hintslight" in /etc/fonts/local.conf and ~/.fonts.conf. But only some applications, including Firefox, Thunderbird, and Openbox, use hintslight fonts correctly; other applications, including Pidgin, lx-panel, XChat, LXterminal, seem still using "hintfull" fonts. I found no configuration in lxappearance and obconf about this.
A screenshot: http://stc.hux.pp.ru/font-hintstyle-problem.png
(You can see from the screenshot. Firefox in the background and Openbox render fonts correctly, while lxpanel, lxterminal, and another window in background don't.)
I added "Xft.hintstyle: hintslight" to ~/.Xdefaults, and it can sometimes solve the problem in some applications, but after restarting X it fails again.

Content of my "/etc/fonts/local.conf":
Code:

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
   <match target="font" >
      <edit mode="assign" name="hinting">
         <bool>true</bool>
      </edit>
   </match>
   <!--  Use Slight Hinting -->
   <match target="font">
      <edit name="hintstyle" mode="assign">
         <const>hintslight</const>
      </edit>
   </match>
   <!--  Enable sub-pixel rendering -->
   <match target="font">
      <edit name="rgba" mode="assign">
         <const>rgb</const>
      </edit>
   </match>
</fontconfig>

Output of "eselect fontconfig list":
Code:

Available fontconfig .conf files (* is enabled):
  [1]   10-autohint.conf
  [2]   10-no-sub-pixel.conf
  [3]   10-sub-pixel-bgr.conf
  [4]   10-sub-pixel-rgb.conf *
  [5]   10-sub-pixel-vbgr.conf
  [6]   10-sub-pixel-vrgb.conf
  [7]   10-unhinted.conf
  [8]   20-fix-globaladvance.conf *
  [9]   20-unhint-small-dejavu-sans-mono.conf
  [10]  20-unhint-small-dejavu-sans.conf
  [11]  20-unhint-small-dejavu-serif.conf
  [12]  20-unhint-small-vera.conf *
  [13]  25-unhint-nonlatin.conf *
  [14]  30-metric-aliases.conf *
  [15]  30-urw-aliases.conf *
  [16]  40-nonlatin.conf *
  [17]  45-latin.conf *
  [18]  49-sansserif.conf *
  [19]  50-user.conf *
  [20]  51-local.conf *
  [21]  57-dejavu-sans-mono.conf *
  [22]  57-dejavu-sans.conf *
  [23]  57-dejavu-serif.conf *
  [24]  60-latin.conf *
  [25]  65-fonts-persian.conf *
  [26]  65-khmer.conf
  [27]  65-nonlatin.conf *
  [28]  69-unifont.conf *
  [29]  70-no-bitmaps.conf
  [30]  70-yes-bitmaps.conf
  [31]  80-delicious.conf *
  [32]  90-synthetic.conf *

Any ideas? Thanks in advance.


Last edited by RichardGv on Sat Mar 06, 2010 2:49 pm; edited 4 times in total
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Fri Mar 05, 2010 8:44 am    Post subject: Reply with quote

Try cairo-respect-fontconfig.patch
Back to top
View user's profile Send private message
RichardGv
n00b
n00b


Joined: 26 Jan 2010
Posts: 43
Location: People's Republic of China

PostPosted: Fri Mar 05, 2010 2:53 pm    Post subject: Reply with quote

Thanks for your help, but is there a easier solution? I'm not a experienced user and I cannot really understand that webpage. :? I just started touching Gentoo 2 months ago. Or is there a way to use that patch more easily, e.g. through an overlay?
I've captured a screenshot of my problem. Hopefully it's helpful: http://stc.hux.pp.ru/font-hintstyle-problem.png
(You can see from the screenshot. Firefox in the background and Openbox render fonts correctly, while lxpanel, lxterminal, and another window in background don't.)
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Fri Mar 05, 2010 3:23 pm    Post subject: Reply with quote

RichardGv wrote:
through an overlay?

You can use the overlay mentioned repeatedly in the huge fonts thread.
Back to top
View user's profile Send private message
RichardGv
n00b
n00b


Joined: 26 Jan 2010
Posts: 43
Location: People's Republic of China

PostPosted: Sat Mar 06, 2010 5:51 am    Post subject: Reply with quote

PaulBredbury wrote:

You can use the overlay mentioned repeatedly in the huge fonts thread.

"devnull" overlay? I just installed media-libs/fontconfig-2.8.0, x11-libs/cairo-1.8.8, media-libs/freetype-2.3.12 from devnull overlay. However nothing changed. The problem is still there.
I found the ebuild of x11-libs/cairo-1.8.8 in devnull overlay does not have cairo-respect-fontconfig.patch applied. Only cairo-1.8.6-r1.ebuild have cairo-respect-fontconfig.patch applied. Do you need to downgrade x11-libs/cairo-1.8.8 to cairo-1.8.6-r1?
Update: After downgrading to x11-libs/cairo-1.8.6-r1 in devnull overlay, the problem is solved. Thanks a lot. I don't really want to keep using x11-libs/cairo-1.8.6-r1, though... Is it a known bug? If it is, when can it be solved in newer versions of cario?
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Sat Mar 06, 2010 6:58 am    Post subject: Reply with quote

RichardGv wrote:
I found the ebuild of x11-libs/cairo-1.8.8 in devnull overlay does not have cairo-respect-fontconfig.patch applied. Only cairo-1.8.6-r1.ebuild have cairo-respect-fontconfig.patch applied.

Bug reported.
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