@@ -600,12 +600,13 @@ class FontProperties(object):
600600 approach allows all text sizes to be made larger or smaller based
601601 on the font manager's default font size.
602602
603- This class will also accept a `fontconfig
604- <https://www.freedesktop.org/wiki/Software/fontconfig/>`_ pattern, if it is
605- the only argument provided. See the documentation on `fontconfig patterns
606- <https://www.freedesktop.org/software/fontconfig/fontconfig-user.html>`_.
607- This support does not require fontconfig to be installed. We are merely
608- borrowing its pattern syntax for use here.
603+ This class will also accept a fontconfig_ pattern_, if it is the only
604+ argument provided. This support does not require fontconfig to be
605+ installed. We are merely borrowing its pattern syntax for use here.
606+
607+ .. _fontconfig: https://www.freedesktop.org/wiki/Software/fontconfig/
608+ .. _pattern:
609+ https://www.freedesktop.org/software/fontconfig/fontconfig-user.html
609610
610611 Note that Matplotlib's internal font manager and fontconfig use a
611612 different algorithm to lookup fonts, so the results of the same pattern
@@ -728,15 +729,15 @@ def get_file(self):
728729
729730 def get_fontconfig_pattern (self ):
730731 """
731- Get a fontconfig pattern suitable for looking up the font as
732+ Get a ` fontconfig pattern`_ suitable for looking up the font as
732733 specified with fontconfig's ``fc-match`` utility.
733734
734- See the documentation on `fontconfig patterns
735- <https://www.freedesktop.org/software/fontconfig/fontconfig-user.html>`_.
736-
737735 This support does not require fontconfig to be installed or
738736 support for it to be enabled. We are merely borrowing its
739737 pattern syntax for use here.
738+
739+ .. _fontconfig pattern:
740+ https://www.freedesktop.org/software/fontconfig/fontconfig-user.html
740741 """
741742 return generate_fontconfig_pattern (self )
742743
@@ -842,14 +843,14 @@ def set_file(self, file):
842843
843844 def set_fontconfig_pattern (self , pattern ):
844845 """
845- Set the properties by parsing a fontconfig *pattern*.
846-
847- See the documentation on `fontconfig patterns
848- <https://www.freedesktop.org/software/fontconfig/fontconfig-user.html>`_.
846+ Set the properties by parsing a fontconfig_ *pattern*.
849847
850848 This support does not require fontconfig to be installed or
851849 support for it to be enabled. We are merely borrowing its
852850 pattern syntax for use here.
851+
852+ .. _fontconfig:
853+ https://www.freedesktop.org/software/fontconfig/fontconfig-user.html
853854 """
854855 for key , val in self ._parse_fontconfig_pattern (pattern ).items ():
855856 if type (val ) == list :
0 commit comments