You are not logged in.

#1 2010-03-26 19:39:05

Mad Fish
Member
Registered: 2009-09-22
Posts: 295

[SOLVED] Ugly fonts in OpenOffice.org

I'm using patched font-related packages from ubuntu.
Here how it looks:
ooofonts.th.png
I've tried tweaking OO.o options, and also the thing about fonts from wiki, but nothing helps to make the fonts look good.

At the same time, I have no issues in KDE with OO.o fonts. What can I do?

Last edited by Mad Fish (2010-06-29 20:58:29)

Offline

#2 2010-03-28 03:56:57

Gen2ly
Member
From: Sevierville, TN
Registered: 2009-03-06
Posts: 1,529
Website

Re: [SOLVED] Ugly fonts in OpenOffice.org

Java has it's own font options.  Try setting your Options in your bashrc:

export _JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=lcd'

Setting Up a Scripting Environment | Proud donor to wikipedia - link

Offline

#3 2010-03-28 08:54:27

Mad Fish
Member
Registered: 2009-09-22
Posts: 295

Re: [SOLVED] Ugly fonts in OpenOffice.org

OO.o is not a Java application (it uses java for scripts, but not for GUI).

Offline

#4 2010-03-28 09:27:56

cappucco
Member
Registered: 2009-10-09
Posts: 13

Re: [SOLVED] Ugly fonts in OpenOffice.org

I had the same problem. I found the following solution, that works for me:

Create a file /etc/xftoverride (or any other path/filename) with the following content:

Xft.lcdfilter: lcddefault

Then paste in your .xinitrc the following line just before the line, that starts your session:

xrdb -override /etc/xftoverride

That solved the problem for me and the fonts in OOo look as good as in any other application.

Greets

Offline

#5 2010-03-28 09:39:45

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: [SOLVED] Ugly fonts in OpenOffice.org

The usual filename is ~/.Xresources

Although, just to confuse us all, what (if anything) that calls it (e.g. /etc/X11/xinit/xinitrc) varies by distro and/or desktop environment  hmm

Offline

#6 2010-03-28 09:53:44

Mad Fish
Member
Registered: 2009-09-22
Posts: 295

Re: [SOLVED] Ugly fonts in OpenOffice.org

cappucco, this method is described in wiki. I've already tried it, but it doesn't change anything for me.

Last edited by Mad Fish (2010-03-28 09:56:08)

Offline

#7 2010-06-29 20:57:53

Mad Fish
Member
Registered: 2009-09-22
Posts: 295

Re: [SOLVED] Ugly fonts in OpenOffice.org

So, the problem was solved in my case with the following:
I've created /etc/xftoverride containing:

Xft.rgba: rgb
Xft.hintstyle: hintslight
Xft.lcdfilter: lcdlight

Adjust this to your font configuration. Now you only need to add this to autostart. Using ".xinitrc" is good when you're launching X with xinit, but when using a DE, just make a script (in my case "~/scripts/fix-fonts.sh") with the following contents:

#!/bin/sh
xrdb -override /etc/xftoverride

Make it executable and add to your DE autostart. That's all.

Offline

#8 2010-11-20 10:02:07

tsagas
Member
Registered: 2009-04-19
Posts: 17

Re: [SOLVED] Ugly fonts in OpenOffice.org

How can I add this script to GDM autostart?

Offline

Board footer

Powered by FluxBB