Subject: Re: openoffice2-bin without Xft?
To: None <tech-pkg@netbsd.org>
From: Ian Zagorskih <ianzag@megasignal.com>
List: tech-pkg
Date: 11/03/2005 01:07:56
> Michael Rauch <mrauch@NetBSD.org> writes:
> > there is /usr/pkg/openoffice.org2.0/program/spadmin where one can add
> > TrueType fonts. I don't know if this solves your problem but maybe it
> > helps.
>
> I just dropped symlinks into the fonts dir and got the MS fonts
> working ok. I should make a ms-ttf-openoffice package that does this,
> but there's mess about adding openofficeversion.mk to figure out where
> to put it. So perhaps just ms-ttf-openoffice2 for now that depends on
> oo2.
>
> > l /usr/pkg/openoffice.org2.0/share/fonts/truetype/
>
> total 630
> lrwxr-xr-x 1 root wheel 39 Oct 25 12:33 AndaleMo.ttf ->
> /usr/pkg/lib/X11/fonts/TTF/AndaleMo.ttf lrwxr-xr-x 1 root wheel 37
> Oct 25 12:33 AriBlk.ttf -> /usr/pkg/lib/X11/fonts/TTF/AriBlk.ttf lrwxr-xr-x
> 1 root wheel 36 Oct 25 12:33 Arial.ttf ->
> /usr/pkg/lib/X11/fonts/TTF/Arial.ttf lrwxr-xr-x 1 root wheel 38 Oct
[snip]
For me in order to see TrueType fonts from fonts/ms-ttf package in
openoffice2-bin-2.0.0 one little hack was enough like to apply the patch
below in /usr/pkg/emul/linux/etc/fonts:
---cut---
--- local.conf.orig 2005-11-03 01:03:25.000000000 +0600
+++ local.conf 2005-11-01 18:37:08.000000000 +0600
@@ -2,6 +2,7 @@
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!-- /etc/fonts/local.conf file for local customizations -->
<fontconfig>
+ <dir>/usr/pkg/lib/X11/fonts</dir>
<!--
Enable sub-pixel rendering
<match target="font">
---cut---
I.e. just add "<dir>/usr/pkg/lib/X11/fonts</dir>" section into local.conf.
ps: I was asking some time ago in tech-pkg@ to patch local.conf from
suse_fontconfig package by default and wiz even Ok'ed it [asking me to supply
a patch :)] but ATM i don't have a workable patche - suse_* stuff is packaged
a bit weird from my point of view, though I'm working on it now :)
// wbr