Skip to content

Commit 8ea0ff6

Browse files
committed
Merge branch 'ft213' into libraqm
2 parents c695ed4 + a86e3c9 commit 8ea0ff6

File tree

1,315 files changed

+27414
-136421
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,315 files changed

+27414
-136421
lines changed

Diff for: .pre-commit-config.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ repos:
2020
- id: check-docstring-first
2121
exclude: lib/matplotlib/typing.py # docstring used for attribute flagged by check
2222
- id: end-of-file-fixer
23-
exclude_types: [svg]
23+
exclude_types: [diff, svg]
2424
- id: mixed-line-ending
2525
- id: name-tests-test
2626
args: ["--pytest-test-first"]
2727
- id: no-commit-to-branch # Default is master and main.
2828
- id: trailing-whitespace
29-
exclude_types: [svg]
29+
exclude_types: [diff, svg]
3030
- repo: https://github.com/pre-commit/mirrors-mypy
3131
rev: v1.14.1
3232
hooks:

Diff for: extern/meson.build

+11-2
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,20 @@ else
1313
# must match the value in `lib/matplotlib.__init__.py`. Also update the docs
1414
# in `docs/devel/dependencies.rst`. Bump the cache key in
1515
# `.circleci/config.yml` when changing requirements.
16-
LOCAL_FREETYPE_VERSION = '2.6.1'
16+
LOCAL_FREETYPE_VERSION = '2.13.3'
1717

1818
freetype_proj = subproject(
1919
f'freetype-@LOCAL_FREETYPE_VERSION@',
20-
default_options: ['default_library=static'])
20+
default_options: [
21+
'default_library=static',
22+
'brotli=disabled',
23+
'bzip2=disabled',
24+
'harfbuzz=disabled',
25+
'mmap=auto',
26+
'png=disabled',
27+
'tests=disabled',
28+
'zlib=internal',
29+
])
2130
freetype_dep = freetype_proj.get_variable('freetype_dep')
2231
endif
2332

Diff for: lib/matplotlib/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1317,7 +1317,7 @@ def _val_or_rc(val, rc_name):
13171317
def _init_tests():
13181318
# The version of FreeType to install locally for running the tests. This must match
13191319
# the value in `meson.build`.
1320-
LOCAL_FREETYPE_VERSION = '2.6.1'
1320+
LOCAL_FREETYPE_VERSION = '2.13.3'
13211321

13221322
from matplotlib import ft2font
13231323
if (ft2font.__freetype_version__ != LOCAL_FREETYPE_VERSION or

Diff for: lib/matplotlib/_mathtext.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,10 @@ def to_raster(self, *, antialiased: bool) -> RasterParse:
163163

164164
for ox, oy, info in shifted.glyphs:
165165
info.font.draw_glyph_to_bitmap(
166-
image, int(ox), int(oy - info.metrics.iceberg), info.glyph,
166+
image,
167+
int(ox),
168+
int(oy - np.ceil(info.metrics.iceberg)) + 1,
169+
info.glyph,
167170
antialiased=antialiased)
168171
for x1, y1, x2, y2 in shifted.rects:
169172
height = max(int(y2 - y1) - 1, 0)
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
# This patch should go on top of the "classic" style and exists solely to avoid
22
# changing baseline images.
33

4-
text.kerning_factor : 6
5-
64
ytick.alignment: center_baseline
75

86
hatch.color: edge
Loading
Binary file not shown.
Loading
Loading
Binary file not shown.

0 commit comments

Comments
 (0)