---
name: "dh_installxfonts"
section: "1"
platform: "linux"
package: "debhelper"
version: "13.24.2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/dh_installxfonts"
---

# dh\_installxfonts(1)

register X fonts

## NAME

dh\_installxfonts - register X fonts

## SYNOPSIS

**dh\_installxfonts** \[*debhelper options*\]

## DESCRIPTION

**dh\_installxfonts** is a debhelper program that is responsible for registering X fonts, so their corresponding *fonts.dir*, *fonts.alias*, and *fonts.scale* be rebuilt properly at install time.

Before calling this program, you should have installed any X fonts provided by your package into the appropriate location in the package build directory, and if you have *fonts.alias* or *fonts.scale* files, you should install them into the correct location under *etc/X11/fonts* in your package build directory.

Your package should depend on **xfonts-utils** so that the **update-fonts-***\** commands are available. (This program adds that dependency to **${misc:Depends}**.)

This program automatically generates the *postinst* and *postrm* commands needed to register X fonts. These commands are inserted into the maintainer scripts by **dh\_installdeb**. See [**dh\_installdeb**(1)](/dh_installdeb/1.md) for an explanation of how this works.

## NOTES

See [**update-fonts-alias**(8)](/update-fonts-alias/8.md), [**update-fonts-scale**(8)](/update-fonts-scale/8.md), and [**update-fonts-dir**(8)](/update-fonts-dir/8.md) for more information about X font installation.

See Debian policy, section 11.8.5. for details about doing fonts the Debian way.

## SEE ALSO

[**debhelper**(7)](/debhelper/7.md)

This program is a part of debhelper.

## AUTHOR

Joey Hess \<joeyh@debian.org\>
