You are not logged in.

#1 2013-05-03 14:17:10

akh
Member
From: Copenhagen, Denmark
Registered: 2012-09-24
Posts: 25

[SOLVED] Very poor font rendering in uzbl

I have been trying out the uzbl browser, i.e. uzbl-tabbed, a few times, but I'm having some problems, especially with font rendering on a few pages. For instance, GitHub looks like this:

2013_05_03_155755_965x634_scrot.jpg

I'm using the default configuration of uzbl. I have the following font packages installed (I believe that is all, though I'm not completely sure):

gsfonts
ttf-dejavu
xorg-fonts-misc

Have anybody experienced something like this before or maybe have an idea about what the issue can be?

Thank you

Last edited by akh (2013-05-03 19:37:11)

Offline

#2 2013-05-03 17:56:32

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: [SOLVED] Very poor font rendering in uzbl

Does it affect any browser? Webkit-based browsers? Or just uzbl?

Offline

#3 2013-05-03 18:17:19

Pascal C.Plusplus
Member
From: France
Registered: 2012-09-27
Posts: 17

Re: [SOLVED] Very poor font rendering in uzbl

I had this problem, apparently it is because of the clean font. I made that userscript to fix it :

// ==UserScript==
// @name noclean
// @description deletes that ugly 'clean' font
// @match *://*/*
// ==/UserScript==

elements = document.getElementsByTagName("*");

for(var i = 0 ; i < elements.length ; i++) {
	style = getComputedStyle(elements[i], null).fontFamily;
	elements[i].style.fontFamily = style.replace(/,?\s+clean/i, "");
}

Offline

#4 2013-05-03 18:45:29

akh
Member
From: Copenhagen, Denmark
Registered: 2012-09-24
Posts: 25

Re: [SOLVED] Very poor font rendering in uzbl

anonymous_user wrote:

Does it affect any browser? Webkit-based browsers? Or just uzbl?

Actually it also affects vimprobable2, which I have installed but not really used much yet. It looks fine in firefox. I guess it is an issue with WebKit-based browser then.

Pascal C.Plusplus wrote:

I had this problem, apparently it is because of the clean font. I made that userscript to fix it :

// ==UserScript==
// @name noclean
// @description deletes that ugly 'clean' font
// @match *://*/*
// ==/UserScript==

elements = document.getElementsByTagName("*");

for(var i = 0 ; i < elements.length ; i++) {
	style = getComputedStyle(elements[i], null).fontFamily;
	elements[i].style.fontFamily = style.replace(/,?\s+clean/i, "");
}

Can you explain how this is to be used? I haven't really looked much into configuring uzbl yet. I tried adding:

@on_event   LOAD_COMMIT    script /path/to/script.js

to my ~/.config/uzbl/config file, but that didn't change anything. I'm sorry if I should have looked more into this beforehand.

Last edited by akh (2013-05-03 19:12:26)

Offline

#5 2013-05-03 19:26:17

Pascal C.Plusplus
Member
From: France
Registered: 2012-09-27
Posts: 17

Re: [SOLVED] Very poor font rendering in uzbl

I don't use uzbl, so I don't know how userscripts work with this browser.
If you read the CSS of Github, you can see that the fonts priority is 'Helvetica, arial, freesans, clean, sans-serif' so another solution would be to install one of the 3 first fonts (I think the ttf-freefont package contains freesans), but this may not work on other sites.

Offline

#6 2013-05-03 19:34:54

akh
Member
From: Copenhagen, Denmark
Registered: 2012-09-24
Posts: 25

Re: [SOLVED] Very poor font rendering in uzbl

I just installed ttf-freefont and that seems to have solved the problem completely. Thank you for the help! Now I know where to look next time.

I don't know if this is the "best" solution, but it definitely works, so I'm going to mark this thread solved.

Last edited by akh (2013-05-03 19:36:31)

Offline

Board footer

Powered by FluxBB