OpenOffice fonts different from the rest of the system
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
OpenOffice fonts different from the rest of the system
I can't get OpenOffice fonts, both UI and document fonts to render the same as for the rest of the system.
I have the recompiled freetype with bci and subpixel and am using the Microsoft webfonts, like Verdana, Tahoma etc.
Fonts look good and sharp in both KDE and Gtk apps.
But OpenOffice, since version 2.1, I think is rendering the fonts like they are smadged, out of focus, badly antialiased.
I've lived with it for quite a while but I've had enough and want this fixed.
Anybody have any ideas?
P.S. Running stock Slack 12 (other than the bci and xft (no, I don't recognize no stinking patents)),and been upgrading OO.org from their website and converting with rpm2tgz.
I am running OpenOffice 2.3 with Microsoft fonts and I am not experiencing any problems.
I built my OpenOffice installation using the build script from SlackBuilds.org. I strongly recommend this method as the script builds OpenOffice to suit the Slack environment.
i have used the slackbuild before and can say that the fonts do look bad - and that's using the MS fonts (from xp and vista boxes ) is there a certain way you have to add them to the system - i know kde font manager is one, way i norm do it is copy all ttf fonts to usr/share/fonts/TTF and then run mkfontsdir mkfontscale and fc-cache - or is that wrong ?
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541
Rep:
Quote:
Originally Posted by Carpo
...is there a certain way you have to add them to the system - i know kde font manager is one, way i norm do it is copy all ttf fonts to usr/share/fonts/TTF and then run mkfontsdir mkfontscale and fc-cache - or is that wrong ?
That's pretty much what you do; after you restart X you'll see those fonts in OpenOffice.org's drop-down lists (and they'll be available in KDE, too). The one thing you may have to do see if there is an entry in /etc/X11/xorg.conf (the Files section) like this:
This tip has been around for ages, but it still is worthwhile for me (ooo2.2) - it improves the gui.
Start Ooffice, go to menu "Tools/Options/Fonts", check "Apply replacement table" and enter manually in the "Font" tab : "Andale Sans UI" (no quotes) You have to enter manually as it does not appear in the dropdown. On the "Replace with" select a TT font. Click on the green tick and check the "Always" box, then OK.
Also (at your own risk) there is a file in <Ooo install dir>/openoffice.org2.2/program/greprefs/all.js (your path may vary)
The all.js file contains a section as follows:
// TrueType
pref("font.FreeType2.enable", false);
pref("font.freetype2.shared-library", "libfreetype.so.6");
// if libfreetype was built without hinting compiled in
// it is best to leave hinting off
pref("font.FreeType2.autohinted", false);
pref("font.FreeType2.unhinted", true);
// below a certian pixel size anti-aliased fonts produce poor results
pref("font.antialias.min", 10);
pref("font.embedded_bitmaps.max", 1000000);
pref("font.scale.tt_bitmap.dark_text.min", 64);
pref("font.scale.tt_bitmap.dark_text.gain", "0.8");
// sample prefs for TrueType font dirs
//pref("font.directory.truetype.1", "/u/sam/tt_font1");
//pref("font.directory.truetype.2", "/u/sam/tt_font2");
//pref("font.directory.truetype.3", "/u/sam/tt_font3");
pref("font.FreeType2.printing", true);
I thought I would experiment by changing "false" to "true" in this section, (and restarting) So far results seem favourable. Of course there is some guesswork going on here, but you may want to have a go.
have tried everything in this thread and still the fonts look bad - but it seems its only on the menu bars, i did a test using ubuntu and its as clear as a bell, and yes i have added MS fonts (copied then from my windows box) and recompiled freetype, strange
edit: if you go to Tools -> Options -> View , and untick Screen font antialiasing - this seems to make the fonts a bit more bearable
OpenOffice doesn't use the system font tools under X11/GTK+ (although it does under Windows and OS X). It uses its own built in system for font rendering and display. This is the reason it can't print or display most OpenType fonts. While this may have made sense 12 years ago when font rendering support under Linux could be dodgy, it has been a stupid idea for years. This should have been fixed in OO.org 2 but is unlikely to be fixed properly in 3, as they still apparently intend to use thier built in font rendering.
EDIT In other words, if your system font is an OpenType font with Postscript style hinting, OpenOffice can't use it.
Last edited by Eternal_Newbie; 04-06-2008 at 05:24 AM.
I am running OpenOffice 2.3 with Microsoft fonts and I am not experiencing any problems.
I built my OpenOffice installation using the build script from SlackBuilds.org. I strongly recommend this method as the script builds OpenOffice to suit the Slack environment.
Is you freetype recompiled with the bytecode enabled and subpixel rendering enabled?
OO uses the MS fonts but renders them badly.
Ok, so I tested the OO package from LinuxPackages.
The result is the same on my main computer.
But on my laptop where I don't have a recompiled freetype, the fonts are normal.
So the problem is with OO not being compatible with freetype recompiled with bytecode and subpixel rendering.
I'm giving up on OO then, with the context sensitive toolbars, this is the last straw.
I'll have to use Koffice untill something is done with OO.
At this point the theory that Sun is using OO to keep users away from Linux is looking more and more like it might be true.
Although the font issue doesn't particularly bother me too much, I'd use the evil MS Office over OpenOffice any day (and I do, through WINE and in VirtualBox). I have OOo up to date and check on its progress once in a while, but it's just not as usable as MS Office yet (exception: complex numbering schemes with nested a) b) etc. stuff -- it is CRAP in MS Word).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.