Paul Elliott <[EMAIL PROTECTED]> さんは書きました:

> 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   <[EMAIL PROTECTED]>   http://www.suse.de/~mfabian
睡眠不足はいい仕事の敵だ。
I � Unicode
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to