Nux!


Home » Stella » General chat » font rendering (ugly fonts)
font rendering [message #1115] Wed, 20 March 2013 05:10 Go to next message
bane is currently offline  bane
Messages: 30
Registered: August 2012
Member
hi nux, what's your expirience with font rendering? its nowhere near like in ubuntu to me. is it possible with centos? i installed freetype-freeworld and here is my /etc/fonts/local.conf but still ...

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!-- Disable the Autohinter -->
<match target="font">
<edit name="autohint" mode="assign"><bool>false</bool></edit>
</match>
<!-- Enable Sub-Pixel Rendering -->
<match target="font">
<edit name="rgba" mode="assign"><const>rgb</const></edit>
</match>
<!-- Enable Hinting -->
<match target="font">
<edit name="hinting" mode="assign"><bool>true</bool></edit>
</match>
<!-- Enable Antialias -->
<match target="font">
<edit name="antialias" mode="assign"><bool>true</bool></edit>
</match>
<!-- Enable Hintslight -->
<match target="font">
<edit name="hintstyle" mode="assign"><const>hintslight</const></edit>
</match>
<!-- Enable lcdfilter -->
<match target="font">
<edit name="lcdfilter" mode="assign"><const>lcddefault</const></edit>
</match>
<!-- Set DPI to 96 -->
<match target="pattern">
<edit name="dpi" mode="assign"><double>96</double></edit>
</match>
<!-- Disable Embedded Bitmaps -->
<match target="font" >
<edit name="embeddedbitmap" mode="assign"><bool>false</bool></edit>
</match>
</fontconfig>
Re: font rendering [message #1116 is a reply to message #1115] Wed, 20 March 2013 07:25 Go to previous messageGo to next message
nux is currently offline  nux
Messages: 1662
Registered: January 2012
Senior Member
Administrator

Hello,

I was never bothered by the fonts and not even now that you raised the issue do they look ugly in any way to me. Then again "de gustibus non est disputandum".

I did however notice fonts looking "funny" on certain displays and gpu combinations, so it may depend also on the hardware, not only on the software.

Here's how it looks for me:
http://img.nux.ro/rV3W-Screenshot.png

Have you tried using the ubuntu fonts?
Re: font rendering [message #1118 is a reply to message #1115] Wed, 20 March 2013 07:56 Go to previous messageGo to next message
bane is currently offline  bane
Messages: 30
Registered: August 2012
Member
Then again "de gustibus non est disputandum".
you're totally right.

i've tried ubuntu fonts but the same story. its not big deal but i just wondering. same settings and on debian/ubuntu its look much better to me.

maybe something with freetype.

but anyway, it's not the problem whatsoever.

Re: font rendering [message #1119 is a reply to message #1115] Wed, 20 March 2013 08:15 Go to previous messageGo to next message
bane is currently offline  bane
Messages: 30
Registered: August 2012
Member
i just saw on infinality forum that beside freetype you also need patched version of cairo and libXft.

then i found on
http://mirror.yandex.ru/fedora/russianfedora/russianfedora/f ixes/el/releases/6.4/Everything/i386/os/

patched versions and now its look nice.

their versions of libXft and freetype are older ones, so if you think thaths make a difference and if you have some time, it would be nice to add patched cairo and libXft to your great repo.

thanks a lot.
Re: font rendering [message #1121 is a reply to message #1115] Wed, 20 March 2013 19:00 Go to previous messageGo to next message
nux is currently offline  nux
Messages: 1662
Registered: January 2012
Senior Member
Administrator

Good find, bane! Has it really made such a huge difference in your case?


I will not however add them to my repo, my policy is to overwrite as little as possible from EL6.
Re: font rendering [message #1122 is a reply to message #1115] Wed, 20 March 2013 19:01 Go to previous messageGo to next message
nux is currently offline  nux
Messages: 1662
Registered: January 2012
Senior Member
Administrator

Would have been nice to show a screenshot, before and after.. Smile
Re: font rendering [message #1149 is a reply to message #1115] Mon, 01 April 2013 18:54 Go to previous messageGo to next message
bane is currently offline  bane
Messages: 30
Registered: August 2012
Member
this is after. i don't have any shot before.
  • Attachment: after.png
    (Size: 54.22KB, Downloaded 450 times)
Re: font rendering [message #1150 is a reply to message #1115] Mon, 01 April 2013 19:16 Go to previous messageGo to next message
nux is currently offline  nux
Messages: 1662
Registered: January 2012
Senior Member
Administrator

Looks good, thanks. Smile
Re: font rendering [message #1228 is a reply to message #1115] Fri, 19 April 2013 07:23 Go to previous messageGo to next message
bane is currently offline  bane
Messages: 30
Registered: August 2012
Member
i found some fedora tips and is cleaner approach:
1. yum install freetype-freeworld
2. ln -s /etc/fonts/conf.avail/10-autohint.conf /etc/fonts/conf.d/
ln -s /etc/fonts/conf.avail/10-sub-pixel-rgb.conf /etc/fonts/conf.d/
3. create ~.Xresource
Xft.autohint: 0
Xft.lcdfilter: lcddefault
Xft.hintstyle: hintslight
Xft.hinting: 1
Xft.antialias: 1
Xft.dpi: 96
Xft.rgba: rgb
4. gconf-editor
apps->gnome-settings_daemon->plugins->xsettings
create two new string keys
- name=antialiasing value=hintslight
and
- name=hinting value=slight
Re: font rendering [message #1231 is a reply to message #1115] Sat, 20 April 2013 09:40 Go to previous messageGo to next message
nux is currently offline  nux
Messages: 1662
Registered: January 2012
Senior Member
Administrator

Nice, thank you. I'll try this shortly. Perhaps you can write a post in Howtos section?
https://forums.nux.ro/index.php?t=thread&frm_id=5&
Re: font rendering [message #1232 is a reply to message #1115] Sat, 20 April 2013 14:34 Go to previous messageGo to next message
bane is currently offline  bane
Messages: 30
Registered: August 2012
Member
ok. waiting for your opinion. i think variant with patched cairo and infinality is still better. but as you said it's really personal matter.
Re: font rendering [message #1233 is a reply to message #1115] Sat, 20 April 2013 17:29 Go to previous messageGo to next message
nux is currently offline  nux
Messages: 1662
Registered: January 2012
Senior Member
Administrator

I tried it on my laptop and I don't see any difference; actually I _think_ it looks slightly worse than before, but it may well be some sort of auto-suggestion. Smile
Re: font rendering [message #1234 is a reply to message #1115] Mon, 22 April 2013 09:31 Go to previous messageGo to next message
bane is currently offline  bane
Messages: 30
Registered: August 2012
Member
my desktop with patched cairo from yandex mirror, freetype-infinality, libXft-infinality, .Xresource and pt-sans font. my auto-sugestion says: great!
Re: font rendering [message #1235 is a reply to message #1115] Mon, 22 April 2013 18:56 Go to previous messageGo to next message
nux is currently offline  nux
Messages: 1662
Registered: January 2012
Senior Member
Administrator

I'm glad you're happy with it.
You really should wrap up a howto. Wink
Re: font rendering [message #1320 is a reply to message #1115] Wed, 29 May 2013 14:09 Go to previous messageGo to next message
Marcus is currently offline  Marcus
Messages: 1
Registered: May 2013
Junior Member
To enable Bytecode Interpreter, you just have to rebuild the original (EL) freetype package with the '--with bytecode_interpreter' option set. This results in much better font rendering.

You have to change Font Rendering to either 'Subpixel Smoothing (LCD)' or 'Best Contrast' in the Gnome Appearance dialog for a notable effect.

[Updated on: Wed, 29 May 2013 14:37]

Report message to a moderator

Re: font rendering [message #1321 is a reply to message #1320] Wed, 29 May 2013 15:27 Go to previous message
nux is currently offline  nux
Messages: 1662
Registered: January 2012
Senior Member
Administrator

You don't need to recompile it, we have it:

yum install freetype-freeworld
Previous Topic: Bamboo Connect Driver
Next Topic: Donation To Stella Dev
Goto Forum:
  


Current Time: Wed Oct 23 03:10:33 BST 2019

Total time taken to generate the page: 0.02805 seconds