fontconfig
Prepare
Section titled “Prepare”-
Check if
NOCONFIGURE=yes ./autogen.shworks compared toautoreconf -vfis; the latter works withgettext-tiny -
Build against
freetype-harfbuzzand notfreetypealone -
Depends on libpng (optional), bzip2, zlib, harfbuzz (optional, circular, adds glib2 and pcre)?
-
Do not remove
src/fcobjshash.gperf.has it breaks the build -
src/fcobjshash.hdoes not exist (generated bygperf) -
Does not build with
muon -
Is
--disable-staticset by default? -
Requires
gperf;kissprovidesfcobjshash.hto removegperfdependency -
The default cache dir is
/var/cache/fontconfig -
Consider disabling non-scalable fonts (e.g. bitmap fonts)
-
Prefer
expattolibxml2as it is smaller (and faster)- gentoo purposely dropped
libxml2support - arch and chimera are using
expatby default
- gentoo purposely dropped
-
The default hinting configuration is
slight -
Do we need to change the default sub-pixel rendering to
rgbornoinstall? -
Do we need to explicitly specify
--with-cache-dir=/var/cache/$nom -
Void does:
# deprecated upstream, but is broken unless 70-no-bitmaps-except-emoji exists in conf.drm "$DESTDIR"/usr/share/fontconfig/conf.avail/70-no-bitmaps.confln -s 70-no-bitmaps-except-emoji.conf "$DESTDIR"/usr/share/fontconfig/conf.avail/70-no-bitmaps.conf- Chimera does:
self.install_file( self.files_path / "70-no-nonscalable.conf", "usr/share/fontconfig/conf.avail",)# reject bitmap fonts by default, preventing them from being preferredself.install_link( "etc/fonts/conf.d/70-no-nonscalable.conf", "../../../usr/share/fontconfig/conf.avail/70-no-nonscalable.conf",)- run the following pre/post install:
fc-cache -vffc-cache --system-only > /dev/nullReferences
Section titled “References”- https://bugs.gentoo.org/900681
- https://github.com/AerynOS/recipes/blob/2025-05-repo-rebuild/f/fontconfig
- https://github.com/chimera-linux/cports/tree/master/main/fontconfig
- https://gitlab.freedesktop.org/fontconfig/fontconfig/-/issues/356
- https://linuxfromscratch.org/blfs/view/svn/general/fontconfig.html
- https://linuxfromscratch.org/blfs/view/svn/x/tuning-fontconfig.html