diff --git a/src/PIL/ImageFont.py b/src/PIL/ImageFont.py
index 89d180ce8cb..3a8a309c679 100644
--- a/src/PIL/ImageFont.py
+++ b/src/PIL/ImageFont.py
@@ -285,7 +285,7 @@ def getlength(self, text, mode="", direction=None, features=None, language=None)
the font which language the text is in, and to apply the
correct substitutions as appropriate, if available.
It should be a `BCP 47 language code
- `
+ `_
Requires libraqm.
:return: Width for horizontal, height for vertical text.
@@ -338,7 +338,7 @@ def getbbox(
the font which language the text is in, and to apply the
correct substitutions as appropriate, if available.
It should be a `BCP 47 language code
- `
+ `_
Requires libraqm.
:param stroke_width: The width of the text stroke.
@@ -398,7 +398,7 @@ def getsize(
the font which language the text is in, and to apply the
correct substitutions as appropriate, if available.
It should be a `BCP 47 language code
- `
+ `_
Requires libraqm.
.. versionadded:: 6.0.0
@@ -455,7 +455,7 @@ def getsize_multiline(
the font which language the text is in, and to apply the
correct substitutions as appropriate, if available.
It should be a `BCP 47 language code
- `
+ `_
Requires libraqm.
.. versionadded:: 6.0.0
@@ -539,7 +539,7 @@ def getmask(
the font which language the text is in, and to apply the
correct substitutions as appropriate, if available.
It should be a `BCP 47 language code
- `
+ `_
Requires libraqm.
.. versionadded:: 6.0.0
@@ -625,7 +625,7 @@ def getmask2(
the font which language the text is in, and to apply the
correct substitutions as appropriate, if available.
It should be a `BCP 47 language code
- `
+ `_
Requires libraqm.
.. versionadded:: 6.0.0