You are not logged in.

#1 2010-08-20 17:56:26

w1ntermute
Member
Registered: 2009-06-28
Posts: 146

[SOLVED] Weird font in Qt apps, can't change it

Here's a screenshot: http://i.imgur.com/kgT8x.png
Here's a GTK app for comparison: http://i.imgur.com/9sGSZ.png

The font isn't Tempus Sans ITC (which comes up as the default in Qtconfig); I'm not sure what it is. I tried removing ~/.config/Trolltech.conf, like they suggested here, but that didn't work. Fonts are fine in GTK apps. Any ideas?

Thanks!

Last edited by w1ntermute (2010-08-21 19:56:27)

Offline

#2 2010-08-20 18:13:35

Vamp898
Member
From: 東京
Registered: 2009-01-03
Posts: 912
Website

Re: [SOLVED] Weird font in Qt apps, can't change it

It really looks like Qt uses a different kind of hinting than GTK+ on your settings.

Offline

#3 2010-08-20 18:56:28

w1ntermute
Member
Registered: 2009-06-28
Posts: 146

Re: [SOLVED] Weird font in Qt apps, can't change it

Here's what's in ~/.fonts.conf:

<?xml version="1.0"?><!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
 <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>hintfull</const>
  </edit>
 </match>
 <match target="font" >
  <edit mode="assign" name="antialias" >
   <bool>true</bool>
  </edit>
 </match>
</fontconfig>

When I deleted the file, it looked really bad: http://i.imgur.com/N0TK5.png

When I restored the file, it went back to normal.

Do I have to make some changes to it to fix the problem?

Last edited by w1ntermute (2010-08-20 18:57:06)

Offline

#4 2010-08-20 19:11:45

shemz
Member
Registered: 2010-04-23
Posts: 135

Re: [SOLVED] Weird font in Qt apps, can't change it

This might help with QT problem:
https://bbs.archlinux.org/viewtopic.php?id=85001

Btw, normally hintslight is good enough. If you want, my font config is here, which is made from the wiki article on font configuration. And looking at your gtk screenshot, I think the fonts are not using antialias settings at all. Also check in aur for cleartype or lcd type fonts, which look better than stock fonts on laptops and lcds.

Offline

#5 2010-08-20 21:00:00

Vamp898
Member
From: 東京
Registered: 2009-01-03
Posts: 912
Website

Re: [SOLVED] Weird font in Qt apps, can't change it

w1ntermute wrote:

When I deleted the file, it looked really bad

The first Picture you send is Half/Middle Hinting

That "really bad" look is completely disbled hinting

now you just have to find out how you enable full-hinting

Offline

#6 2010-08-20 21:27:16

w1ntermute
Member
Registered: 2009-06-28
Posts: 146

Re: [SOLVED] Weird font in Qt apps, can't change it

Here's something extremely odd. This screenshot is from Deluge (a PyGTK app): http://i.imgur.com/z07cc.png

Some of the columns have the desired hinting (like "Size", "Progress", and "Up Speed"), while others don't. And look at the "1"s - the serifs are different for the two versions - are you sure it's the same font, just with different hinting?

shemz wrote:

This might help with QT problem:
https://bbs.archlinux.org/viewtopic.php?id=85001

Btw, normally hintslight is good enough. If you want, my font config is here, which is made from the wiki article on font configuration. And looking at your gtk screenshot, I think the fonts are not using antialias settings at all. Also check in aur for cleartype or lcd type fonts, which look better than stock fonts on laptops and lcds.

OK, I'll take a look at that.

Vamp898 wrote:
w1ntermute wrote:

When I deleted the file, it looked really bad

The first Picture you send is Half/Middle Hinting

That "really bad" look is completely disbled hinting

now you just have to find out how you enable full-hinting

But I already have 'hintfull' in ~/.fonts.conf. Is that not correct?

Edit: I changed my GTK font from "Sans" to "Bitstream Vera Sans" (the two look identical) and everything seems to be OK now.

Last edited by w1ntermute (2010-08-21 19:56:14)

Offline

#7 2010-08-24 23:08:01

Vamp898
Member
From: 東京
Registered: 2009-01-03
Posts: 912
Website

Re: [SOLVED] Weird font in Qt apps, can't change it

I found a second way.

Disable Subpixel (LCDs) Hinting in GNOME Font-Settings and enable Grayscale instead. After setting that the hinting is ok....

Last edited by Vamp898 (2010-08-24 23:08:20)

Offline

#8 2010-08-27 19:41:04

w1ntermute
Member
Registered: 2009-06-28
Posts: 146

Re: [SOLVED] Weird font in Qt apps, can't change it

I found out what the real problem was. I was still having problems such as the default font in OpenOffice Writer being that other font, and not Times New Roman, by default. The font's name is "UmePlus P Gothic", and the real source of the issues was me adding

export LC_CTYPE=ja_JP.utf8

to my Openbox autostart script. I did this so that I would be able to view Japanese characters in urxvt, but that clearly caused other issues.

Offline

Board footer

Powered by FluxBB