You are not logged in.

#26 2007-08-27 21:35:17

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: [NEARLY SOLVED] font rendering in gtk apps problem after last upgrade

saneone wrote:

Luckily for me (but it is also hard to explain why) it doesn't affect Opera or Konqueror...
Both screenshots (Opera and FF) taken in "autohint true" setting, so I don't have any ideas why Firefox's spacing is so different...

I remember I had many issues with that a while ago when I played with fonts settings.
Every apps reacted differently to fontconfig settings, not only qt vs gtk ones, but also between different gtk apps (maybe cairo vs non cairo ones, ...)

You might also want to check the output of

xrdb -q |grep Xft

to check if any settings are set there, that might override the ones from ~/.fonts.conf .


pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

#27 2007-08-27 21:41:08

saneone
Member
From: Warsaw, PL/Bridgeport, CT
Registered: 2007-06-05
Posts: 70

Re: [NEARLY SOLVED] font rendering in gtk apps problem after last upgrade

shining wrote:

You might also want to check the output of

xrdb -q |grep Xft

to check if any settings are set there, that might override the ones from ~/.fonts.conf .

the output of this command is "nothing"... is it bad?


I never sleep, cause sleep is the cousin of death

Offline

#28 2007-08-27 21:58:39

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: [NEARLY SOLVED] font rendering in gtk apps problem after last upgrade

saneone wrote:

the output of this command is "nothing"... is it bad?

No, it's good, it means you don't have conflicting settings there.


pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

#29 2007-08-27 22:10:40

saneone
Member
From: Warsaw, PL/Bridgeport, CT
Registered: 2007-06-05
Posts: 70

Re: [NEARLY SOLVED] font rendering in gtk apps problem after last upgrade

sad sad sad

I don't want to reinstall my whole system...
There must be a working solution...

Last edited by saneone (2007-08-27 22:11:07)


I never sleep, cause sleep is the cousin of death

Offline

#30 2007-08-28 18:23:25

jskier
Member
From: Minnesota, USA
Registered: 2003-07-30
Posts: 383
Website

Re: [NEARLY SOLVED] font rendering in gtk apps problem after last upgrade

saneone wrote:

sad sad sad

I don't want to reinstall my whole system...
There must be a working solution...

The problem for me was MS fonts... I need them but getting rid of the ttf-ms-fonts package makes everything look flawless. I must have installed them while doing a term paper neutral


--
JSkier

Offline

#31 2007-08-28 18:32:28

jinn
Member
From: Gothenburg
Registered: 2005-12-10
Posts: 506

Re: [NEARLY SOLVED] font rendering in gtk apps problem after last upgrade

I have the same thing with gtk apps in kdemod.. firefox fonts are really big, with more spacing.


The ultimate Archlinux release name: "I am your father"

Offline

#32 2007-08-28 19:44:46

saneone
Member
From: Warsaw, PL/Bridgeport, CT
Registered: 2007-06-05
Posts: 70

Re: [NEARLY SOLVED] font rendering in gtk apps problem after last upgrade

jinn wrote:

I have the same thing with gtk apps in kdemod.. firefox fonts are really big, with more spacing.

I use kdemod too...

The problem occurs even when I create new account... sad

Last edited by saneone (2007-08-28 19:45:21)


I never sleep, cause sleep is the cousin of death

Offline

#33 2007-08-30 00:14:15

saneone
Member
From: Warsaw, PL/Bridgeport, CT
Registered: 2007-06-05
Posts: 70

Re: [NEARLY SOLVED] font rendering in gtk apps problem after last upgrade

I've just found a working solution smile

I've added one line:

export MOZ_DISABLE_PANGO=1

to /etc/profile.d/kde.sh

and it works like a charm smile

Thank You All for your answers!

Last edited by saneone (2007-08-30 00:14:58)


I never sleep, cause sleep is the cousin of death

Offline

#34 2007-08-30 00:41:44

FeatherMonkey
Member
Registered: 2007-02-26
Posts: 313

Re: [NEARLY SOLVED] font rendering in gtk apps problem after last upgrade

I may be wrong but I just know I install it when i have problems and it seems to solve it for me is to install gtk-qt-engine, perhaps I'm wrong though I'm intrigued by the above solution.

Offline

#35 2007-08-30 18:10:59

saneone
Member
From: Warsaw, PL/Bridgeport, CT
Registered: 2007-06-05
Posts: 70

Re: [NEARLY SOLVED] font rendering in gtk apps problem after last upgrade

Does anyone know how to disable Pango for all GTK2 applications?

I get correct font rendering in Mozilla apps (due to disabling Pango), but I still don't like the way The Gimp and Azureus render fonts...

Last edited by saneone (2007-08-30 18:14:22)


I never sleep, cause sleep is the cousin of death

Offline

#36 2007-09-10 04:35:53

kagerato
Member
Registered: 2007-09-10
Posts: 45
Website

Re: [NEARLY SOLVED] font rendering in gtk apps problem after last upgrade

Pango (the text internationalization library) is a required dependency of GTK2, so I doubt there is a means of disabling it.  What that MOZ_DISABLE_PANGO environment variable probably does is switch the font rendering backend.  Pango has two -- Xft2 (default) and a direct freetype mode.  (Source: http://www.gtk.org/api/2.6/gtk/gtk-building.html , dependencies section.)  As I understand it, Xft relies on fontconfig and hence uses its configuration (usually at /etc/fonts/fonts.conf and associated files), and the other mode does not.  To disable Xft you might try another environment variable, GDK_USE_XFT .  Set it to 0 to disable.  The default is on, however, and generally you do want Xft and fontconfig enabled.

I see that you've already tried toggling the autohinter (fontconfig "autohint" property).  The other major freetype settings are the sub-pixel rendering (fontconfig "rgba" property) which makes a significant difference in the anti-aliasing, the strength of the hinting (fontconfig "hintstyle" property), and whether anti-aliasing and hinting are enabled at all (fontconfig "hinting" and "antialias" properties).  See http://wiki.archlinux.org/index.php/XOr … figuration .

This is an educated guess on my part, but I think your original configuration (the old "very nice" look) was TTF bytecode interpreter on (autohinter off), anti-aliasing and hinting on, and sub-pixel rendering on with a 'medium' hint style.  In order to get TTF bytecode interpretation, keep in mind that your freetype binary has to be compiled with it enabled (there are three patents by Apple on its procedures).  I don't know whether Arch's build includes it; most distros do not.  (The relevant define should be TT_CONFIG_OPTION_BYTECODE_INTERPRETER .)  Whether the bytecode interpreter gives better looking results than the autohinter is a matter of taste.

There are some PNGs at http://bugs.archlinux.org/task/2033?opened=399 to do some comparison of font appearance with and without the bytecode interpreter.

In any case, good luck.

Offline

#37 2007-09-29 15:40:04

schivmeister
Developer/TU
From: Singapore
Registered: 2007-05-17
Posts: 971
Website

Re: [NEARLY SOLVED] font rendering in gtk apps problem after last upgrade

xrdb -q |grep Xft

That outputs:

Xft.dpi:        96

Does that mean some component has a different DPI setting like GTK+?

Am I lucky to stumble upont this thread or what? I have been slapping my face these few days trying to figure out why QT and GTK+ can't get along in the same platform it was meant to run on.

Previously I did not care much about font rendering (no, I mean I gave up hope), but recently it caught my attention that other people's fonts (judging from all those screenshots and guides available on better fonts in Linux) looked WAY better. Last week I read up on Gentoo's Xorg and Fonts wiki again and I think I missed the part on BCI and Xft Autohinting before. That time my fonts looked not-so-nice, but all my applications had the same unified look for fonts, regardless of widget toolkit.

I then found out that all those while on Arch I'd been running with BCI on, since in the Arch's version of the Xorg and Fonts wiki it mentions the distro ships with BCI compiled in by default. This interested me to the extent that I went ahead and tried out autohinting. I copied the LCD example from the Gentoo wiki and pasted it in .fonts.conf, downloaded libxft-lcd, then restarted X. Upon re-entry, I was instantly amazed. I had never before seen such beautiful rendering of fonts on an LCD, and definitely not in Windows. Take a good look, view a Windows system with an LCD from different angles and benchmark this - you'll know Xft's autohinting for LCDs is superior.

I was so happy. Really.......And then I clicked on the Firefox icon sitting in Kicker. I was sad again. Such disappointment could only be expressed through bare-fisted punches to the face of the one who questions that very emotion. I checked out all other GTK+ applications, and true enough to my horror the font rendering was even uglier than my previous environment with BCI.

So I figured out that:

BCI + Full-hinting = Unified

Xft Autohinting + Xft's LCD patches + Medium-hinting = Beautiful in one half, uglier than ever before in the other

Somebody please prove me wrong lol


I need real, proper pen and paper for this.

Offline

#38 2007-09-29 15:50:51

fwojciec
Member
Registered: 2007-05-20
Posts: 1,411

Re: [NEARLY SOLVED] font rendering in gtk apps problem after last upgrade

I think you might need cairo-lcd as well, but I don't know - I don't use KDE.  There is also freetype2-lcd package available on AUR.

Offline

#39 2007-09-30 15:16:47

schivmeister
Developer/TU
From: Singapore
Registered: 2007-05-17
Posts: 971
Website

Re: [NEARLY SOLVED] font rendering in gtk apps problem after last upgrade

Heh thanks! cairo-lcd and linking the autohint did some magic, although there is still a significant difference between QT and GTK+ fonts. I don't think freetype2-lcd is needed though, because my current fonts in KDE (QT-based apps) look awesome, and I didn't see any visual difference after replacing the normal freetype2 package for either QT or GTK+ apps. Anyway, at least now my fonts look better than when I was ignorant big_smile


I need real, proper pen and paper for this.

Offline

#40 2007-09-30 21:34:47

saneone
Member
From: Warsaw, PL/Bridgeport, CT
Registered: 2007-06-05
Posts: 70

Re: [NEARLY SOLVED] font rendering in gtk apps problem after last upgrade

did u install libxft-lcd?
if no, then do it...


I never sleep, cause sleep is the cousin of death

Offline

#41 2007-10-01 14:45:28

schivmeister
Developer/TU
From: Singapore
Registered: 2007-05-17
Posts: 971
Website

Re: [NEARLY SOLVED] font rendering in gtk apps problem after last upgrade

Yes I had libxft..Anyway I think it was some sorta placebo..now I'm happy and satisfied big_smile Don't think it can get any better than this:

Opera (QT) rendering: http://img.flashtux.org/img1324259280a2x9f822ad3.png

Firefox (GTK+) rendering: http://img.flashtux.org/img132425927fa8x3eabc41a.png

Font: Lucida Grande
Monospace Font: Arial
Size: 16
Minimum size: 12


I need real, proper pen and paper for this.

Offline

#42 2007-10-01 14:58:29

saneone
Member
From: Warsaw, PL/Bridgeport, CT
Registered: 2007-06-05
Posts: 70

Re: [NEARLY SOLVED] font rendering in gtk apps problem after last upgrade

spacing is different in Firefox (IMO worse and less readable)... try to disable pango smile


I never sleep, cause sleep is the cousin of death

Offline

#43 2007-10-01 18:51:33

schivmeister
Developer/TU
From: Singapore
Registered: 2007-05-17
Posts: 971
Website

Re: [NEARLY SOLVED] font rendering in gtk apps problem after last upgrade

Yeah and the sizes don't match up =/ I need pango to render those squares! lol


I need real, proper pen and paper for this.

Offline

Board footer

Powered by FluxBB