Mailing List Archive

ISO8859-? fonts in uclibc-ng via ugly hack
Gentoo now requires nls support to enable ISO8859-? fonts. But
uclibc-ng does not support nls, e.g...

============================================================================
[aa1][waltdnes][~] emerge -pv font-misc-misc font-bh-lucidatypewriter-100dpi

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild R ] media-fonts/font-misc-misc-1.1.2::gentoo USE="X (-nls)" 0 KiB
[ebuild R ] media-fonts/font-bh-lucidatypewriter-100dpi-1.0.3::gentoo USE="X (-nls)" 0 KiB
============================================================================

Note the forced "(-nls)" flags, which means that portage will not
normally install ISO8859-1 or similar fonts. Now for the ugly hack.
Font install selection is controlled by function xorg-2_font_configure()
in file /usr/portage/eclass/xorg-2.eclass The function checks some
conditions before deciding which font set(s) to install. I took out the
conditionals, and hard-coded it to install ISO8859-1, and no other font
variants. Here is my xorg-2_font_configure() People elsewhere may want
to "--disable-iso8859-1" and --enable the appropriate font variant for
their country. I'm also file-attaching xorg-2.eclass.gz

xorg-2_font_configure() {
debug-print-function ${FUNCNAME} "$@"

FONT_OPTIONS+="
--enable-iso8859-1
--disable-iso8859-2
--disable-iso8859-3
--disable-iso8859-4
--disable-iso8859-5
--disable-iso8859-6
--disable-iso8859-7
--disable-iso8859-8
--disable-iso8859-9
--disable-iso8859-10
--disable-iso8859-11
--disable-iso8859-12
--disable-iso8859-13
--disable-iso8859-14
--disable-iso8859-15
--disable-iso8859-16
--disable-jisx0201
--disable-koi8-r"

}



--
Walter Dnes <waltdnes@waltdnes.org>