HOWTO: Improve Font Rendering in LMDE

Archived topics about LMDE 1 and LMDE 2
randomizer

Re: HOWTO: Improve Font Rendering in LMDE

Post 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.
anamnesis

Re: HOWTO: Improve Font Rendering in LMDE

Post 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
randomizer

Re: HOWTO: Improve Font Rendering in LMDE

Post 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.
pappfer

Re: HOWTO: Improve Font Rendering in LMDE

Post 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?
User avatar
kmb42vt
Level 5
Level 5
Posts: 974
Joined: Sun Dec 06, 2009 11:15 am
Location: Vermont
Contact:

Re: HOWTO: Improve Font Rendering in LMDE

Post 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.
Last edited by kmb42vt on Fri Sep 24, 2010 10:46 am, edited 1 time in total.
"Humph. Choice, it is the quintessential Linux delusion, simultaneously the source of it's greatest strength, and it's greatest weakness." (All apologies to The Architect)
pappfer

Re: HOWTO: Improve Font Rendering in LMDE

Post 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.
User avatar
kmb42vt
Level 5
Level 5
Posts: 974
Joined: Sun Dec 06, 2009 11:15 am
Location: Vermont
Contact:

Re: HOWTO: Improve Font Rendering in LMDE

Post 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.
"Humph. Choice, it is the quintessential Linux delusion, simultaneously the source of it's greatest strength, and it's greatest weakness." (All apologies to The Architect)
pappfer

Re: HOWTO: Improve Font Rendering in LMDE

Post by pappfer »

Everything is 10px but the DPI was set to 128. I changed it to 96 and it all looks fine now. Thanks! :)
User avatar
kmb42vt
Level 5
Level 5
Posts: 974
Joined: Sun Dec 06, 2009 11:15 am
Location: Vermont
Contact:

Re: HOWTO: Improve Font Rendering in LMDE

Post 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
"Humph. Choice, it is the quintessential Linux delusion, simultaneously the source of it's greatest strength, and it's greatest weakness." (All apologies to The Architect)
dogbert176

Re: HOWTO: Improve Font Rendering in LMDE

Post 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?
randomizer

Re: HOWTO: Improve Font Rendering in LMDE

Post by randomizer »

Did you run "chmod +x ./fixfonts.sh" first?
dogbert176

Re: HOWTO: Improve Font Rendering in LMDE

Post 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:
randomizer

Re: HOWTO: Improve Font Rendering in LMDE

Post by randomizer »

Odd. you could also try "sh ./fixfonts.sh"
dogbert176

Re: HOWTO: Improve Font Rendering in LMDE

Post 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:
craigevil

Re: HOWTO: Improve Font Rendering in LMDE

Post 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
off220

Re: HOWTO: Improve Font Rendering in LMDE

Post 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.
mfdemicco

Re: HOWTO: Improve Font Rendering in LMDE

Post 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.
randomizer

Re: HOWTO: Improve Font Rendering in LMDE

Post 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.
randomizer

Re: HOWTO: Improve Font Rendering in LMDE

Post 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.
Kazmirzak

Re: HOWTO: Improve Font Rendering in LMDE

Post 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.
Locked

Return to “LMDE Archive”