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
--
Fedora-maintainers mailing list
Fedora-maintainers@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-maintainers
--
Fedora-maintainers-readonly mailing list
Fedora-maintainers-readonly@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-maintainers-readonly