[prev in list] [next in list] [prev in thread] [next in thread]
List: opensuse-packaging
Subject: Re: [opensuse-packaging] Standard way to install a font?
From: Mike FABIAN <mfabian () suse ! de>
Date: 2007-11-06 18:01:32
Message-ID: s3td4unfe2r.fsf () magellan ! suse ! de
[Download RAW message or body]
Paul Elliott <pelliott@io.com> さんは書きました:
> Is there a standard way (a macro perhaps), to install a font?
>
>
> I have a spec file written by someone else that puts the following in %post:
> [ -x /usr/sbin/chkfontpath ] && /usr/sbin/chkfontpath -q -a \
> %{datadir}/fonts/default/Type1;\ [ -x /usr/sbin/chkfontpath ] && \
> /usr/sbin/chkfontpath -q -a %{datadir}/fonts/default/Type1/adobestd35;\ [ -x \
> /usr/bin/fc-cache ] && /usr/bin/fc-cache
>
> Is this correct? Works with all distros?
We use
%post
%run_suseconfig_fonts -c
%postun
%run_suseconfig_fonts -c
The '-c' needs to be added only if it CJK fonts (Chinese, Japanese, or
Korean fonts) are installed.
--
Mike FABIAN <mfabian@suse.de> http://www.suse.de/~mfabian
睡 不足はいい仕事の敵 。
I � Unicode
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-packaging+help@opensuse.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic