LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-30-2011, 03:08 PM   #1
veeall
Member
 
Registered: May 2007
Location: Estonia
Distribution: Slackware64-current
Posts: 298

Rep: Reputation: 56
Application fonts look different on kde4 vs on wmfs or fluxbox


What can be done to make fonts on all applications look the same whether i use kde4 or some other window manager?

I like how kde4 displays fonts, but when i log into fluxbox or wmfs, gtk fonts are different, same goes for Opera. I've attached two screenshots of an opera popup menu. Fonts on wmfs (the second picture) look blurry.

I'm using qtcurve style for qt and gtk apps.
Dpi should be set to 96 on all wm-s.
I've resolved a problem with gtk fonts looking blurry in kde4, compared to qt ones, by deleting ~/.kde/share/config/gtkrc-2.0 and ~/.kde/share/config/gtkrc, but in other wms it is still the issue.

My ~/.fonts.conf
Code:
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
 <!--  Use the Autohinter -->
 <match target="font">
  <edit mode="assign" name="autohint">
   <bool>true</bool>
  </edit>
 </match>
 <match target="font">
  <test compare="more" name="weight">
   <const>medium</const>
  </test>
 </match>
 <match target="font">
  <edit mode="assign" name="rgba">
   <const>none</const>
  </edit>
 </match>
 <match target="font">
  <edit mode="assign" name="hinting">
   <bool>true</bool>
  </edit>
 </match>
 <match target="font">
  <edit mode="assign" name="hintstyle">
   <const>hintmedium</const>
  </edit>
 </match>
 <dir>~/.fonts</dir>
 <match target="font">
  <edit mode="assign" name="antialias">
   <bool>true</bool>
  </edit>
 </match>
</fontconfig>
Attached Thumbnails
Click image for larger version

Name:	Opera_kde4.png
Views:	30
Size:	13.7 KB
ID:	8087   Click image for larger version

Name:	Opera_wmfs.png
Views:	32
Size:	14.7 KB
ID:	8088  
 
Old 09-30-2011, 07:02 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,361
Blog Entries: 28

Rep: Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148
You will likely need to configure them in the styles or appearance sections of the respective Window manager. In Fluxbox, that is in the individual style.

http://fluxbox-wiki.org/index.php?title=Change_font

In Opera, you can configure the fonts in Settings-->Preferences-->Advanced-->Fonts.

Last edited by frankbell; 09-30-2011 at 07:03 PM.
 
Old 10-01-2011, 06:17 AM   #3
veeall
Member
 
Registered: May 2007
Location: Estonia
Distribution: Slackware64-current
Posts: 298

Original Poster
Rep: Reputation: 56
No, that is not the case here, i'm sure. From the link above:

Quote:
First of all an important fact to know is that fluxbox doesn't control the font of external apps such as firefox or k3b. Those fonts are controlled by their related toolkits (gtk, qt,...), fluxbox fonts are only for the toolbar, the windowtitle and the menu (rootmenu, windowmenu, toolbarmenu...).
Gtk and qt fonts do look different, when used outside kde4. I wonder what is causing this? I've already set opera fonts to Dejavu Sans, but they are differently antialiased or hinted as seen in posted screenshots.

Edit: My ~/.gtkrc-2.0
Quote:
# DO NOT EDIT! This file will be overwritten by LXAppearance.
# Any customization should be done in ~/.gtkrc-2.0.mine instead.

gtk-theme-name="QtCurve"
gtk-icon-theme-name="oxygen"
gtk-font-name="Liberation Sans 9"
gtk-cursor-theme-name="Segamini"
gtk-cursor-theme-size=0
gtk-toolbar-style=GTK_TOOLBAR_BOTH_HORIZ
gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR
gtk-button-images=1
gtk-menu-images=1
gtk-enable-event-sounds=1
gtk-enable-input-feedback-sounds=1
include "/home/m/.gtkrc-2.0.mine"
Edit: Added gtk screenshots, cahnge is not so dramatic with gimp as with opera.
Attached Thumbnails
Click image for larger version

Name:	gimp_kde4.png
Views:	15
Size:	25.1 KB
ID:	8092   Click image for larger version

Name:	gimp_wmfs.png
Views:	17
Size:	27.3 KB
ID:	8093  

Last edited by veeall; 10-01-2011 at 06:30 AM.
 
Old 10-01-2011, 12:42 PM   #4
Bindestreck
Member
 
Registered: Jul 2011
Location: Sweden
Distribution: Slackware
Posts: 822

Rep: Reputation: 441Reputation: 441Reputation: 441Reputation: 441Reputation: 441
If you want to fine-tune your font, change the part of your .font.conf to this:

<edit mode="assign" name="rgba">
<const>none</const>

-->

<edit mode="assign" name="rgba">
<const>rgb</const>


<edit mode="assign" name="hintstyle">
<const>hintmedium</const>


-->
<edit mode="assign" name="hintstyle">
<const>hintfull</const>
 
Old 10-01-2011, 01:38 PM   #5
veeall
Member
 
Registered: May 2007
Location: Estonia
Distribution: Slackware64-current
Posts: 298

Original Poster
Rep: Reputation: 56
Ok, finally resolved the issue by installing xsettingsd. Found out about it here: Diagnosing font issues on Linux

Apparently gnome users running fluxbox have noted the problem too, running 'gnome-settings-daemon' at startup solves it, as mentioned here.

Thanks to everybody for thinking along!

Last edited by veeall; 10-01-2011 at 01:43 PM.
 
1 members found this post helpful.
Old 10-01-2011, 07:20 PM   #6
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,361
Blog Entries: 28

Rep: Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148
Thanks for the link to xsettingsd.

Consistency in fonts is not something I personally care about, but many person do, so it's really nice to have that information to pass along to others.
 
Old 10-01-2011, 07:29 PM   #7
Bindestreck
Member
 
Registered: Jul 2011
Location: Sweden
Distribution: Slackware
Posts: 822

Rep: Reputation: 441Reputation: 441Reputation: 441Reputation: 441Reputation: 441
What is the difference of .font.conf and xsettingsd?
 
Old 10-02-2011, 06:19 AM   #8
veeall
Member
 
Registered: May 2007
Location: Estonia
Distribution: Slackware64-current
Posts: 298

Original Poster
Rep: Reputation: 56
Quote:
Originally Posted by eXpander_ View Post
What is the difference of .font.conf and xsettingsd?
Can't answer that. I guess xsettingsd enables to configure (via ~/.xsettingsd), and load xft(?) or xsettings(?) font settings for lighter wms which doesn't already have dedicated 'gnome-settings-daemon'-like infrastructure in place to handle different approaches to fonts of different gui toolkits. I have no idea, but it worked.

My ~/.xsettingsd, mostly from the xsettingsd man page:
Code:
       Net/ThemeName "QtCurve"
       Xft/Antialias 1
       Xft/DPI 100352
       Xft/HintStyle "hintmedium"
       Xft/Hinting 1
       Xft/RGBA "none"
       Xft/lcdfilter "none"
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sound only available to one application at a time with ALSA under KDE4 on openSUSE Solar Granulation SUSE / openSUSE 2 09-16-2011 10:18 AM
[SOLVED] KDE4 Application adding: How to do it manually? gankoji Linux - Software 5 11-02-2009 01:47 AM
[SOLVED] Huge fonts problem with KDE4 and radeon driver Freex Linux - Desktop 2 04-06-2009 11:33 AM
How to set PATH For KDE4 Application Launcher Apps MQMan Linux - Software 2 03-08-2009 07:34 PM
MPlayer chokes on WMFs Steve Cronje Linux - Software 2 06-21-2003 09:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration