From ba77dbe69609776faacc63743d20d7308154eeaf Mon Sep 17 00:00:00 2001 From: Nathan Williis Date: Sat, 7 Dec 2024 16:58:58 +0000 Subject: [PATCH] Fix broken code block syntax. --- Lib/fontTools/ttLib/ttFont.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Lib/fontTools/ttLib/ttFont.py b/Lib/fontTools/ttLib/ttFont.py index d7bd92bc2..59c55abb4 100644 --- a/Lib/fontTools/ttLib/ttFont.py +++ b/Lib/fontTools/ttLib/ttFont.py @@ -27,6 +27,7 @@ class TTFont(object): they're actually accessed. This means that simple operations can be extremely fast. Example usage: + .. code-block:: pycon >>> @@ -39,8 +40,10 @@ class TTFont(object): >> tt['head'].unitsPerEm 2048 - For details of the objects returned when accessing each table, see :ref:`tables`. + For details of the objects returned when accessing each table, see the + :doc:`tables ` documentation. To add a table to the font, use the :py:func:`newTable` function: + .. code-block:: pycon >>> @@ -50,7 +53,8 @@ class TTFont(object): >> font["OS/2"] = os2 TrueType fonts can also be serialized to and from XML format (see also the - :ref:`ttx` binary): + :doc:`ttx ` binary): + .. code-block:: pycon >>