Page 2 of 5

Re: HOWTO: Improve Font Rendering in LMDE

Posted: Fri Sep 24, 2010 9:21 am
by randomizer
Does this affect Open Office as well? I could deal with Firefox and other applications using the ~/.fonts.conf I posted in another thread, but Open Office refused to comply. Only changes in the Appearance dialog had any affect on Open Office for me, and there's not enough granular control with that.

Re: HOWTO: Improve Font Rendering in LMDE

Posted: Fri Sep 24, 2010 9:37 am
by anamnesis
Just copied a sample out off my ooo. I'm happy with that. Font is Times New Roman/12pt.

LöY RSC @ ¹²³¼½ kloü ß LÖÄ sdh09765

Re: HOWTO: Improve Font Rendering in LMDE

Posted: Fri Sep 24, 2010 9:49 am
by randomizer
ikey wrote:The gconftool calls in the script do what the Appearance dialog would be doing.
I tried mixing this approach with ~/.fonts.conf.. but the fonts ended up spaced
out and distorted with really bad colour-bleeding on thin fonts
Good show, I will have to try this out for sure. I could not type up a lengthy document with the font rendering Open Office was giving me. It was truly appalling.

Re: HOWTO: Improve Font Rendering in LMDE

Posted: Fri Sep 24, 2010 10:28 am
by pappfer
I tried the script but I have the same problem as some other posted: I can't open the appearances menu. The error is the following:

Code: Select all

/usr/share/themes/Shiki-Wise/gtk-2.0/gtkrc:126: Murrine configuration option "gradients" is no longer supported and will be ignored.
/usr/share/themes/Shiki-Wise/gtk-2.0/gtkrc:126: Murrine configuration option "gradients" is no longer supported and will be ignored.
The program 'gnome-appearance-properties' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadAlloc (insufficient resources for operation)'.
  (Details: serial 594 error_code 11 request_code 53 minor_code 0)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)
When I used the fix (gconftool-2 --unset "/desktop/gnome/font_rendering/dpi") the appearances menu worked but I had really huge fonts).

Any advices?

Re: HOWTO: Improve Font Rendering in LMDE

Posted: Fri Sep 24, 2010 10:40 am
by kmb42vt
pappfer wrote:I tried the script but I have the same problem as some other posted: I can't open the appearances menu. The error is the following:

Code: Select all

/usr/share/themes/Shiki-Wise/gtk-2.0/gtkrc:126: Murrine configuration option "gradients" is no longer supported and will be ignored.
/usr/share/themes/Shiki-Wise/gtk-2.0/gtkrc:126: Murrine configuration option "gradients" is no longer supported and will be ignored.
The program 'gnome-appearance-properties' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadAlloc (insufficient resources for operation)'.
  (Details: serial 594 error_code 11 request_code 53 minor_code 0)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)
When I used the fix (gconftool-2 --unset "/desktop/gnome/font_rendering/dpi") the appearances menu worked but I had really huge fonts).

Any advices?
Did you run the fix for this that Ikey posted along with the script (first post on this thread)? If you missed it, here it is. Just run it in terminal:

Code: Select all

gconftool-2 --unset "/desktop/gnome/font_rendering/dpi
Hope it works for you. If you've already done this maybe Ikey can give you some further help.

BTW, the first two lines of error code you posted occurs every time I update anything that even remotely involves gradients, Murrine, GTK2 and Shikiwise including doing the initial updating on a fresh LMDE load so I don't believe those first two lines matter at all.

Re: HOWTO: Improve Font Rendering in LMDE

Posted: Fri Sep 24, 2010 10:45 am
by pappfer
Yes, as you can read it in the end of my post I also tried that and it fixed the problem, although it made the fonts huge.

Re: HOWTO: Improve Font Rendering in LMDE

Posted: Fri Sep 24, 2010 10:55 am
by kmb42vt
pappfer wrote:Yes, as you can read it in the end of my post I also tried that and it fixed the problem, although it made the fonts huge.
Oops, sorry about that. My eyes must have been crossed or something. :oops: Now I know this is a stupid question but if the fix brought back the access to Appearances, does it show your font size set to 10 and DPI set to 96 as it should be? I know this sounds obvious but redundancy checks sometime pay off.

Re: HOWTO: Improve Font Rendering in LMDE

Posted: Fri Sep 24, 2010 11:04 am
by pappfer
Everything is 10px but the DPI was set to 128. I changed it to 96 and it all looks fine now. Thanks! :)

Re: HOWTO: Improve Font Rendering in LMDE

Posted: Fri Sep 24, 2010 11:08 am
by kmb42vt
pappfer wrote:Everything is 10px but the DPI was set to 128. I changed it to 96 and it all looks fine now. Thanks! :)
No problem at all. Here's to redundancy checks. :D

Re: HOWTO: Improve Font Rendering in LMDE

Posted: Sat Sep 25, 2010 8:07 am
by dogbert176
hello,

When I tried to execute the script fixfonts.sh with "./fixfonts.sh", it gave me a series of errors:
"rule 14-31: command not found ("opdracht niet gevonden")
./fixfonts.sh: regel 14: --set: opdracht niet gevonden
./fixfonts.sh: regel 15: --set: opdracht niet gevonden
./fixfonts.sh: regel 17: --set: opdracht niet gevonden
./fixfonts.sh: regel 18: --set: opdracht niet gevonden
Setting default fonts..
./fixfonts.sh: regel 28: --set: opdracht niet gevonden
./fixfonts.sh: regel 29: --set: opdracht niet gevonden
./fixfonts.sh: regel 30: --set: opdracht niet gevonden
./fixfonts.sh: regel 31: --set: opdracht niet gevonden
Anyone who knows what could be the problem?

Re: HOWTO: Improve Font Rendering in LMDE

Posted: Sat Sep 25, 2010 8:54 pm
by randomizer
Did you run "chmod +x ./fixfonts.sh" first?

Re: HOWTO: Improve Font Rendering in LMDE

Posted: Sun Sep 26, 2010 4:16 am
by dogbert176
I have a script "fixfonts.sh" in my home directory.
In a terminal, I entered the 2 commands in Ikey's first post:

* chmod +x ./fixfonts.sh
* ./fixfonts.sh

The first command did nothing, the second gave me the errors "rule xxx: command not found".
So I think I followed instructions, but no result.

:roll:

Re: HOWTO: Improve Font Rendering in LMDE

Posted: Sun Sep 26, 2010 6:27 am
by randomizer
Odd. you could also try "sh ./fixfonts.sh"

Re: HOWTO: Improve Font Rendering in LMDE

Posted: Sun Sep 26, 2010 9:45 am
by dogbert176
Nevermind ....
I copied Ikey's script again in a new file, executed the commands and everything is working now.

My fault, obviously :oops:

Re: HOWTO: Improve Font Rendering in LMDE

Posted: Sun Oct 03, 2010 12:07 pm
by craigevil
No need to use a script to fix fonts.

Enable Smooth Fonts in Debian. - Linux Forums
http://www.linuxforums.org/forum/debian ... ebian.html

Re: HOWTO: Improve Font Rendering in LMDE

Posted: Mon Oct 04, 2010 10:28 pm
by off220
great, but it would be even greater if someone who knows would add the improvement for KDE fonts too. It would be awesome to have one script that makes fonts in all DE look the same.

Re: HOWTO: Improve Font Rendering in LMDE

Posted: Mon Oct 04, 2010 10:54 pm
by mfdemicco
anamnesis wrote:Beautiful or at least very satisfying fonts here: LCD 1440x900@60hz
Appearance -> fonts -> details -> lcd subpixel "slight" /Resolution 96dpi. That it. No scripts, no screwing.
hth
anamnesis
The appearance control panel is broken. The settings don't take (at least for me. Maybe it needs to run as root). Every time I go into to it, the buttons show a "-" instead of a ".". Hence the need for this script and/or the .fonts.config file in your home folder.

Re: HOWTO: Improve Font Rendering in LMDE

Posted: Tue Oct 05, 2010 5:52 am
by randomizer
mfdemicco wrote:The appearance control panel is broken. The settings don't take (at least for me. Maybe it needs to run as root). Every time I go into to it, the buttons show a "-" instead of a ".".
This is normal, but rather unintuitive behaviour. Any time the settings in the Appearance->Fonts->Details dialog are altered so that they do not equal any of the presets on the Appearance->Fonts dialog, those presets have the hyphen in the place of a normal radio button. There's no real indication that this is what is meant to happen though, and having them all show this icon doesn't really tell the user any meaningful information.

Re: HOWTO: Improve Font Rendering in LMDE

Posted: Fri Oct 08, 2010 2:19 am
by randomizer
I don't seem to be needing this now. Maybe I have some leftover configuration from Lucid but I wiped that and installed LMDE and the fonts look far better than they ever did before, if not the same as on Lucid. Running the script doesn't make any difference now, except for enabling subpixel rendering, but I changed it so that it uses greyscale instead. Windows does subpixel rendering pretty good, but colour fringing has always been a noticeable issue for me in Linux.

Re: HOWTO: Improve Font Rendering in LMDE

Posted: Fri Oct 08, 2010 8:55 pm
by Kazmirzak
"If you look at what the script does, it sets the resolution to 96dpi and sets LCD to slight already."

funny enough, I did a clean install of LMDE and applied all updates - and the settings above were already active, and my fonts look good as they should.