-
Notifications
You must be signed in to change notification settings - Fork 0
Comparing changes
Open a pull request
base repository: DWesl/matplotlib
base: main
head repository: matplotlib/matplotlib
compare: main
- 19 commits
- 20 files changed
- 7 contributors
Commits on Apr 29, 2025
-
Rework mapping of dvi glyph indices to freetype indices.
In 89a7e19, an API for converting "dvi glyph indices" (as stored in a dvi file) to FreeType-compatible keys (either "indices into the native charmap" or "glyph names") was introduced. It was intended that end users (i.e., backends) would check the type of `text.glyph_name_or_index` ((A) int or (B) str) and load the glyph accordingly ((A) `FT_Set_Charmap(native_cmap); FT_Load_Char(index);` or (B) `FT_Load_Glyph(FT_Get_Name_Index(name));`); however, with the future introduction of {xe,lua}tex support, this kind of type checking becomes inconvenient, because {xe,lua}tex's "dvi glyph indices", which are directly equal to FreeType glyph indices (i.e. they would be loaded with `FT_Load_Glyph(index);`), would normally also be converted to ints. This PR introduces a new API (`Text.index`) that performs this mapping (via the new `DviFont._index_dvi_to_freetype`), always mapping to FreeType glyph indices (i.e. one can always just call `FT_Load_Glyph` on the result). To do so, in case (A) it loads itself the native charmap (something the end user needed to do by themselves previously) and performs the cmap-to-index conversion (`FT_Get_Char_Index`) previously implicit in `FT_Load_Char`; in case (B) it performs itself the name-to-index conversion (`FT_Get_Name_Index`). When {xe,lua}tex support is introduced in the future, `_index_dvi_to_freetype` will just return the index as is. The old APIs are not deprecated yet, as other changes will occur for {xe,lua}tex support (e.g. font_effects will go away and be replaced by `.font.effects`, as {xe,lua}tex don't store that info in the pdftexmap entry), and grouping all API changes together seems nicer (to only require a single adaptation step by the API consumer).
Configuration menu - View commit details
-
Copy full SHA for a3c14cf - Browse repository at this point
Copy the full SHA a3c14cfView commit details
Commits on May 6, 2025
-
Configuration menu - View commit details
-
Copy full SHA for 4e75193 - Browse repository at this point
Copy the full SHA 4e75193View commit details -
Configuration menu - View commit details
-
Copy full SHA for 96ac88f - Browse repository at this point
Copy the full SHA 96ac88fView commit details -
Merge pull request matplotlib#30015 from dstansby/nth-coord-depr
Expire deprecation of nth_coord arguments
Configuration menu - View commit details
-
Copy full SHA for 2366f57 - Browse repository at this point
Copy the full SHA 2366f57View commit details -
Merge pull request matplotlib#30014 from dstansby/rm-tick-iterator
Remove deprecated get_tick_iterator()
Configuration menu - View commit details
-
Copy full SHA for 35976c9 - Browse repository at this point
Copy the full SHA 35976c9View commit details
Commits on May 7, 2025
-
The combination of matplotlib#30014 and matplotlib#30015 made this import redundant, but as each PR was indepenently tested and reviewed, nothing was evident until both were merged.
Configuration menu - View commit details
-
Copy full SHA for b4d532f - Browse repository at this point
Copy the full SHA b4d532fView commit details -
Merge pull request matplotlib#30023 from QuLogic/fix-lint
Remove unused `_api` import
Configuration menu - View commit details
-
Copy full SHA for b4cb934 - Browse repository at this point
Copy the full SHA b4cb934View commit details -
Micro-optimize _to_rgba_no_colorcycle.
This patch speeds up conversions of `#rgba`-type formats by between 25% and 40% (while shortening the implementation), although real benefits should be limited because of caching in to_rgba.
Configuration menu - View commit details
-
Copy full SHA for c004e49 - Browse repository at this point
Copy the full SHA c004e49View commit details
Commits on May 8, 2025
-
Make PdfFile font-related attributes private.
They are clearly intended for internal use, and we may want to change their internal representation in the future to support xetex/luatex (which expose more font types).
Configuration menu - View commit details
-
Copy full SHA for a93e681 - Browse repository at this point
Copy the full SHA a93e681View commit details -
Merge pull request matplotlib#29829 from anntzer/dvi2ft
Rework mapping of dvi glyph indices to freetype indices.
Configuration menu - View commit details
-
Copy full SHA for 3da6ea9 - Browse repository at this point
Copy the full SHA 3da6ea9View commit details -
Merge pull request matplotlib#30027 from anntzer/pfp
Make PdfFile font-related attributes private.
Configuration menu - View commit details
-
Copy full SHA for 99a521b - Browse repository at this point
Copy the full SHA 99a521bView commit details -
Merge pull request matplotlib#30020 from anntzer/trnc
Micro-optimize _to_rgba_no_colorcycle.
Configuration menu - View commit details
-
Copy full SHA for 6dcfa9d - Browse repository at this point
Copy the full SHA 6dcfa9dView commit details
Commits on May 9, 2025
-
Update diagram in subplots_adjust documentation to clarify parameter …
…meaning
ellie committedMay 9, 2025 Configuration menu - View commit details
-
Copy full SHA for ac52254 - Browse repository at this point
Copy the full SHA ac52254View commit details -
Corrected subplots_adjust diagram
ellie committedMay 9, 2025 Configuration menu - View commit details
-
Copy full SHA for dd7f51b - Browse repository at this point
Copy the full SHA dd7f51bView commit details -
Addressed diagram feedback and simplified annotation calls
ellie committedMay 9, 2025 Configuration menu - View commit details
-
Copy full SHA for 785140b - Browse repository at this point
Copy the full SHA 785140bView commit details -
Configuration menu - View commit details
-
Copy full SHA for da6b32e - Browse repository at this point
Copy the full SHA da6b32eView commit details -
Merge pull request matplotlib#30029 from Bindi003/fix-subplots-adjust…
…-diagram Update diagram in subplots_adjust documentation to clarify parameters
Configuration menu - View commit details
-
Copy full SHA for f7051b5 - Browse repository at this point
Copy the full SHA f7051b5View commit details -
Merge pull request matplotlib#30006 from dstansby/lint-pyi
Enable linting of .pyi files
Configuration menu - View commit details
-
Copy full SHA for 75d9199 - Browse repository at this point
Copy the full SHA 75d9199View commit details
Commits on May 10, 2025
-
Remove meson-python pinning (matplotlib#30035)
Version 0.18 should restore handling of symlinks: mesonbuild/meson-python#728
Configuration menu - View commit details
-
Copy full SHA for 03fa1ff - Browse repository at this point
Copy the full SHA 03fa1ffView commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff main...main