You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit d730481
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: doc/devel/testing.rst
+16-11Lines changed: 16 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,6 +33,22 @@ Optionally you can install:
33
33
34
34
- `pep8 <http://pep8.readthedocs.org/en/latest>`_ to test coding standards
35
35
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
+
36
52
Running the tests
37
53
-----------------
38
54
@@ -185,17 +201,6 @@ decorator:
185
201
If some variation is expected in the image between runs, this
186
202
value may be adjusted.
187
203
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
`freetype<http://www.freetype.org/>`_ is a font rasterization
25
+
FreeType
26
+
`FreeType<http://www.freetype.org/>`_ is a font rasterization
27
27
library used by matplotlib which supports TrueType, Type 1, and
Copy file name to clipboardExpand all lines: doc/users/screenshots.rst
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -252,7 +252,7 @@ Mathtext_examples
252
252
253
253
Below is a sampling of the many TeX expressions now supported by matplotlib's
254
254
internal mathtext engine. The mathtext module provides TeX style mathematical
255
-
expressions using `freetype2<http://www.freetype.org/>`_
255
+
expressions using `FreeType<http://www.freetype.org/>`_
256
256
and the BaKoMa computer modern or `STIX <http://www.stixfonts.org>`_ fonts.
257
257
See the :mod:`matplotlib.mathtext` module for additional details.
Copy file name to clipboardExpand all lines: doc/users/text_intro.rst
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ expressions, truetype support for raster and vector outputs, newline
8
8
separated text with arbitrary rotations, and unicode support. Because
9
9
we embed the fonts directly in the output documents, e.g., for postscript
10
10
or PDF, what you see on the screen is what you get in the hardcopy.
11
-
`freetype2<http://www.freetype.org/>`_ support
11
+
`FreeType<http://www.freetype.org/>`_ support
12
12
produces very nice, antialiased fonts, that look good even at small
13
13
raster sizes. matplotlib includes its own
14
14
:mod:`matplotlib.font_manager`, thanks to Paul Barrett, which
0 commit comments