# Graphics

> Section in “Backward Incompatible Changes › Removed Features” of the book [PHP 7 Explained](https://php7explained.com/) by Sebastian Bergmann and Stefan Priebsch, published by thePHP.cc. The book covers PHP 7.0 to 7.4 and was last updated in November 2020. HTML version: <https://php7explained.com/backward-incompatible-changes/removed-features/graphics/>

## Removed Support for PostScript Type1 Fonts from `gd` Extension

The support for PostScript Type1 fonts has been removed from the `gd` extension. Therefore, the following functions are no longer available:

- `imagepsbbox()`
- `imagepsencodefont()`
- `imagepsextendfont()`
- `imagepsfreefont()`
- `imagepsloadfont()`
- `imagepsslantfont()`
- `imagepstext()`

If your code still relies on these functions, you have to substitute them and use TrueType fonts instead of PostScript Type1 fonts. Both are vector-based so there should not be any issue with regard to quality of the fonts.

Use the function `imagettftext()` to embed TrueType text into an image.

---

Previous: [I/O and Filesystem](https://php7explained.com/backward-incompatible-changes/removed-features/io-and-filesystem/index.html.md) | Next: [Changed Semantics](https://php7explained.com/backward-incompatible-changes/changed-semantics/index.html.md)
