Gentoo Archives: gentoo-user

From: "Vladimir G. Ivanovic" <vgivanovic@×××××××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Open Office 2.0.4 and fonts
Date: Thu, 08 Feb 2007 04:50:50
Message-Id: 45CAAB0C.6080709@comcast.net
In Reply to: [gentoo-user] Open Office 2.0.4 and fonts by Adrian
1 Adrian wrote:
2 > Greetings;
3 >
4 > I just upgraded Open Office from 2.0.3 to 2.0.4 (yes, I'm behind).
5 >
6 > Now, I can't use any of the fonts other than the ones which come with
7 > Open Office. All my existing fonts which I added were being substituted
8 > with other fonts.
9
10 Have you tried deleting ~/ooo-2.0/user/psprint/pspfontcache and then
11 restarting OOO?
12
13 It's been a while since I fooled around with OOO fonts, so my memory
14 is fuzzy. I seem to have convinced OOO to pick up 2745 fonts, judging
15 from the length of pspfontcache. (More than ~3000 fonts and the
16 startup times become unbearably long.)
17
18 I converted all my OpenType fonts to TrueType with the following script:
19
20 #! /bin/env fontforge
21 # Quick and dirty hack: converts a font to truetype (.ttf), works only
22 # with one font.
23 # Use in a bash loop like this:
24 # for font in *.otf ; do
25 # fontforge -script otf2ttf $font
26 # done
27 #
28 Print("Opening "+$1);
29 Open($1);
30 Print("Saving "+$1:r+".ttf");
31 Generate($1:r+".ttf");
32 Quit(0);
33
34 I believe that this script works with Type 1 (PostScript) fonts as
35 well, despite what the comments say. (You'll have to change bash loop,
36 though to pick up *.pfb or *.pfa??? files.)
37
38 Hope this helps...
39
40 --- Vladimir
41
42 media-gfx/fontforge
43 Available versions: 20050502 (~)20050624 (~)20060406
44 (~)20060408 (~)20060703 20060703-r1 (~)20060822 (~)20061014
45 (~)20061014-r1 (~)20061025 (~)20061220
46 Installed versions: Version: 20061220
47 Date: 01:16:42 12/26/06
48 USE: X gif jpeg png svg -tiff truetype
49 unicode
50 Best versions/slot: (~)20061220
51 Homepage: http://fontforge.sourceforge.net/
52 Description: postscript font editor and converter
53 License: BSD
54
55 --
56
57 Vladimir G. Ivanovic
58 +1 650 678 8014
59 --
60 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] Open Office 2.0.4 and fonts Adrian <linuxgn2@××××××××××××.com>