-
Notifications
You must be signed in to change notification settings - Fork 23
Set OpenType features for default plot font #22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community 8000 .
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
(I've just patched |
Font selection in mpl is quite a mess (to be fair it's a complicated topic and what's already present is already a lot of work); see e.g. matplotlib/matplotlib#10249 for some issues and matplotlib/matplotlib#16203 for some work on it; I'm sure we could use more hands working on it :) In other words: no, but contributions are welcome, and I think it should go to mpl rather than here (effectively the syntax here is just exploiting the fact that raw paths are completely bypassing the font selection system). For a concrete proposal: in #10249 I propose to switch from fontconfig fontspec strings to CSS fontspec strings (after all FontProperties are already modeled based on CSS fonts). CSS also supports https://developer.mozilla.org/en-US/docs/Web/CSS/font-feature-settings so it may be possible to add them to FontProperties and then to fontspec strings. |
I think there isn't anything to be done on mplcairo's side (well, at least until FontProperties get font-feature-settings support) and the work to be done can be tracked in matplotlib/matplotlib#16566 (comment). |
I've just tried out the new OpenType feature support, appears to work nicely on
However, since the syntax isn't integrated with font_manager (which of course would need matplotlib support), it seems like it would be extremely tedious to set properties for default fonts (axes/…) this way – is there a good solution for this?
The text was updated successfully, but these errors were encountered: