Fonts scriptlet for CORE packages

Mamoru Tasaka mtasaka at ioa.s.u-tokyo.ac.jp
Sat Mar 3 00:52:42 UTC 2007


Parag N(पराग़) wrote:
> Hi,
>   While doing reviews of fonts packages in core, i got confused on
> post and postun sections (to check) of those packages as they are
> using chkfontpath and mkfontdir and ttmkfdir 
There are two font system on X Window System. They are "X11 core font
system" and "Xft". While many newer applications such as GNOME/KDE
applications use Xft, not a few applications still require X11 core
font system.

> %post
> if [ -x /usr/bin/fc-cache ]; then
>  /usr/bin/fc-cache /usr/share/fonts
> fi
This is Xft

> umask 133
>    touch %{ttfontdir} 2> /dev/null && {
>        /usr/bin/ttmkfdir -d %{ttfontdir} -o %{ttfontdir}/fonts.scale
>        mkfontdir %{ttfontdir}
>        /usr/sbin/chkfontpath -q -a %{ttfontdir}
>    }
>    mkfontdir %{bmpfontdir} && /usr/sbin/chkfontpath -q -a %{bmpfontdir}
This is X11 core font system. So if the packager expects that
the fonts are used on X11 core font system, the procedure of
"mkfontdir" and so on are necessary.

Mamoru




More information about the Fedora-maintainers mailing list