DH_INSTALLXFONTS(1)

πŸ’– NAME πŸ’–

dh_installxfonts β€” bestie, this one registers X fonts for u ✨


🌸 SYNOPSIS 🌸

dh_installxfonts [debhelper options]

πŸŽ€ DESCRIPTION πŸŽ€

okay so dh_installxfonts is a debhelper program, and its whole job β€” its entire main character moment β€” is registering X fonts, so that their corresponding fonts.dir, fonts.alias, and fonts.scale get rebuilt properly at install time. iconic behavior honestly πŸ’…

Before u call this program, here's the vibe check: u should have already installed any X fonts that ur package provides into the appropriate location in the package build directory. and if u have fonts.alias or fonts.scale files, u should install those into the correct location under etc/X11/fonts in ur package build directory. don't skip this part bestie, it's giving prerequisites 🌈

Ur package should depend on xfonts-utils so that the update-fonts-* commands are actually available. (and good news β€” this program adds that dependency to ${misc:Depends} for u, so u don't gotta do it manually 🫢)

This program also automatically generates the postinst and postrm commands needed to register X fonts. those commands get inserted into the maintainer scripts by dh_installdeb. see dh_installdeb(1) for an explanation of how this works β€” it's a whole system and it slays, fr fr ✨


πŸ’œ NOTES πŸ’œ

See update-fonts-alias(8), update-fonts-scale(8), and update-fonts-dir(8) for more information about X font installation. yes, all three, go read them, i'll wait πŸ¦‹

Also see Debian policy, section 11.8.5. for details about doing fonts the Debian way. (the Debian way is the correct way, no cap πŸ‘‘)


πŸ”₯ SEE ALSO πŸ”₯

This program is a part of debhelper. literally one of the gang πŸ’–


πŸ‘‘ AUTHOR πŸ‘‘

Joey Hess <joeyh@debian.org>


and that's the whole page bestie!! this one's from debhelper 14.5ubuntu1, dated 2026-09-21 β€” go register those fonts, u got this πŸŽ€βœ¨πŸ¦‹

πŸ“¦ where this page comes from