wp font face <command>

Manages font faces.

In this article

To list, get, create, update or delete font faces, use wp post with --post_type=wp_font_face.

Examples

# Install a font face for an existing family
$ wp font face install 42 --src="https://example.com/font.woff2" --font-weight=700
Success: Created font face 43.

# List installed font faces
$ wp post list --post_type=wp_font_face

Subcommands

NameDescription
wp font face install

Installs a font face.

Command documentation is regenerated at every release. To add or update an example, please submit a pull request against the corresponding part of the codebase.