@@ -33,6 +33,22 @@ Optionally you can install:
3333
3434 - `pep8 <http://pep8.readthedocs.org/en/latest >`_ to test coding standards
3535
36+ Building matplotlib for image comparison tests
37+ ----------------------------------------------
38+
39+ matplotlib's test suite makes heavy use of image comparison tests,
40+ meaning the result of a plot is compared against a known good result.
41+ Unfortunately, different versions of FreeType produce differently
42+ formed characters, causing these image comparisons to fail. To make
43+ them reproducible, matplotlib can be built with a special local copy
44+ of FreeType. This is recommended for all matplotlib developers.
45+
46+ Add the following content to a ``setup.cfg `` file at the root of the
47+ matplotlib source directory::
48+
49+ [test]
50+ local_freetype = True
51+
3652Running the tests
3753-----------------
3854
@@ -185,17 +201,6 @@ decorator:
185201 If some variation is expected in the image between runs, this
186202 value may be adjusted.
187203
188- Freetype version
189- ----------------
190-
191- Due to subtle differences in the font rendering under different
192- version of freetype some care must be taken when generating the
193- baseline images. Currently (early 2015), almost all of the images
194- were generated using ``freetype 2.5.3-21 `` on Fedora 21 and only the
195- fonts that ship with ``matplotlib `` (regenerated in PR #4031 / commit
196- 005cfde02751d274f2ab8016eddd61c3b3828446) and travis is using
197- ``freetype 2.4.8 `` on ubuntu.
198-
199204Known failing tests
200205-------------------
201206
0 commit comments