Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
OpenOffice.org trick
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
jub0r
n00b
n00b


Joined: 01 Feb 2003
Posts: 73
Location: Denver, Colorado

PostPosted: Mon Mar 17, 2003 12:15 am    Post subject: OpenOffice.org trick Reply with quote

I've been working for a week now on various font problems in OOo. I finaly found out about setting
Code:
LD_PRELOAD=/usr/lib/libfreetype.so

That made my fonts look good under write, but quite right under calc. It was ok enough that I decided to live with it.

Then, I stumbled accross an option under Tools > Options > spreadsheet > General called "use printer metrics for text formatting" When I unchecked this, the fonts straigtened up and didn't have wierd gaps anymore.

I just thought I'd share since I couldn't find any mention of this setting in the forums. Maybe it was only a problem for me because of my printer driver. (Epson C80)
Back to top
View user's profile Send private message
ghetto
Guru
Guru


Joined: 10 Jul 2002
Posts: 369
Location: BC, Canada

PostPosted: Tue Mar 18, 2003 5:40 am    Post subject: Reply with quote

In what file do you set "LD_PRELOAD"?
Could you explain a bit more?
_________________
Blizzard you suck.
Back to top
View user's profile Send private message
jub0r
n00b
n00b


Joined: 01 Feb 2003
Posts: 73
Location: Denver, Colorado

PostPosted: Tue Mar 18, 2003 5:50 am    Post subject: Reply with quote

There may be a simpler way but, I made a little script to execute the programs.
Code:
#!/bin/bash
# set's LD_PRELOAD to my freetype library 2.1.3 so I have good fonts in OOo
# usage: oowrapper (desired office program)

export LD_PRELOAD=/usr/lib/libfreetype.so.6.3.2
exec /usr/OpenOffice.org1.0.2/program/$1

So, if I run /usr/OpenOffice.org1.0.2/program/oowrapper scalc
It will run scalc with the LD_PRELOAD variable set. It works good except for fonts are blank that are not anti-aliased.
I guess it's a known bug with openoffice.org and freetype 2.1.3
Back to top
View user's profile Send private message
Vancouverite
Apprentice
Apprentice


Joined: 28 Sep 2002
Posts: 162
Location: Vancouver, Canada

PostPosted: Tue Mar 18, 2003 7:58 am    Post subject: Reply with quote

This adjustment can be applied to the ooffice script in /usr/bin which is what the OpenOffice sym links in /usr/bin point to. Another trick with OpenOffice is to execute a strip --strip-all on all the binaries and libraries in /opt/OpenOffice.org1.0.2/program. This shaves about 5.5MB off the total size of the package. Also the "smooth" USE flag when emerging freetype fetches the hacked freetype lib which renders fonts very nicely. It also helps to have some nice fonts :)
_________________
Screenshot
Back to top
View user's profile Send private message
ghetto
Guru
Guru


Joined: 10 Jul 2002
Posts: 369
Location: BC, Canada

PostPosted: Tue Mar 18, 2003 10:37 am    Post subject: Reply with quote

I tried `emerge freetype -pv` but it did not show the "smooth" USE variable so i checked the ebuild itself to confim and it _is_ there, so i emerged with "smooth" then adjusted LD_PRELOAD, then striped Openoffice, and everything runs fine.

The fonts do look a little smaller and cleaner now.

Thanks.
_________________
Blizzard you suck.
Back to top
View user's profile Send private message
Vancouverite
Apprentice
Apprentice


Joined: 28 Sep 2002
Posts: 162
Location: Vancouver, Canada

PostPosted: Tue Mar 18, 2003 11:17 am    Post subject: Reply with quote

ghetto... glad it worked for you. The page for the freetype hack that "smooth" installs is here. I used to install it manually until "smooth" appeared. I should start a thread about using strip because I've got the best performance to date out of XFree86 4.3.0 by modifying the ebuild to --strip-all (with some other changes too).
_________________
Screenshot
Back to top
View user's profile Send private message
jub0r
n00b
n00b


Joined: 01 Feb 2003
Posts: 73
Location: Denver, Colorado

PostPosted: Tue Mar 18, 2003 6:59 pm    Post subject: Reply with quote

I just upgraded to the 644m4 release and the problem with fonts less than 10 points or so dissappearing is gone. I still have to do the LD_PRELOAD thing to get the best looking fonts but, I can see even the 6point ones.
Of course, who knows how many problems this unstable snapshot is going to cause me.
Back to top
View user's profile Send private message
popopo_
n00b
n00b


Joined: 15 Mar 2003
Posts: 21

PostPosted: Tue Mar 18, 2003 7:52 pm    Post subject: Reply with quote

Are you sure the "smooth" USE variable still exists ?
emerge -vp freetype gives me

[ebuild R ] media-libs/freetype-2.1.3-r2 -doc

And no sign of "smooth" on http://www.gentoo.org/dyn/use-index.xml
Back to top
View user's profile Send private message
Vancouverite
Apprentice
Apprentice


Joined: 28 Sep 2002
Posts: 162
Location: Vancouver, Canada

PostPosted: Wed Mar 19, 2003 1:40 am    Post subject: Reply with quote

ghetto wrote:
I tried `emerge freetype -pv` but it did not show the "smooth" USE variable so i checked the ebuild itself to confim and it _is_ there,


Yes I'm sure.
_________________
Screenshot
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum