---
name: "dzen2-textwidth"
section: "1"
platform: "linux"
package: "dzen2"
version: "0.9.5+git20130923.488ab66-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/dzen2-textwidth"
---

# dzen2-textwidth(1)

calculate the width in pixels of text for a given font.

## NAME

dzen2-textwidth - calculate the width in pixels of text for a given font.

## SYNOPSIS

**dzen2-textwidth**  *fontname* *string*

## DESCRIPTION

**textwidth** is a simple utility to calculate the width in pixels of text with a given font.

This tool is provided as part of the **dzen2 (1)** package.

## OPTIONS

A summary of options is included below.

- **fontname**

  Set the font.

- **string**

  Set the string.

## AUTHOR

**textwidth** was written by Robert Manea.

This manual page was written by bertagaz \<bertagaz@ptitcanardnoir.org\>, for the Debian project (but may be used by others).

## SEE ALSO

[**dzen2**(1)](/dzen2/1.md), [**dzen2-dbar**(1)](/dzen2-dbar/1.md), [**dzen2-gcpubar**(1)](/dzen2-gcpubar/1.md), and [**dzen2-gdbar**(1)](/dzen2-gdbar/1.md).
