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
OTF feature support (alternate figure styles, etc.) #16566
Is there currently a backend that supports OTF GSUB features such as the choice between old style/lining figures?
I couldn't find a way to make this work, which is an issue for working with some "professional" fonts (e.g. FF Scala Sans Pro) that come with old style figures enabled by default.
Trawling the web, I found some references to HarfBuzz supporting specifying those with a colon after the font name, e.g. Scala Sans Pro:lnum in the above example. I couldn't make that work with the way matplotlib uses FreeType, though (haven't checked the source code yet).
I suppose I could use XeTeX via PGF, but that seems like a rather roundabout way.
This issue has been marked "inactive" because it has been 365 days since the last comment. If this issue is still present in recent Matplotlib releases, or the feature request is still wanted, please leave a comment and this label will be removed. If there are no updates in another 30 days, this issue will be automatically closed, but you are free to re-open or create a new issue if needed. We value issue reports, and this procedure is meant to help us resurface and prioritize issues that have not been addressed yet, not make them disappear. Thanks for your help!
Activity
anntzer commentedon Feb 24, 2020
Following your suggestion, mplcairo now does, this was surprisingly easy to implement :) (since today's master)
e.g.
gives you

Getting something similar in mpl proper would probably require someone to push #14912 through (I don't really have the motivation for that currently).
dnadlinger commentedon Feb 24, 2020
@anntzer: This is great, thanks – I actually started looking at mplcairo earlier today, and will definitely give this a go.
anntzer commentedon May 3, 2020
As requested in matplotlib/mplcairo#22, it would also be nice if FontProperties supported https://developer.mozilla.org/en-US/docs/Web/CSS/font-feature-settings.
github-actions commentedon Jul 10, 2023
This issue has been marked "inactive" because it has been 365 days since the last comment. If this issue is still present in recent Matplotlib releases, or the feature request is still wanted, please leave a comment and this label will be removed. If there are no updates in another 30 days, this issue will be automatically closed, but you are free to re-open or create a new issue if needed. We value issue reports, and this procedure is meant to help us resurface and prioritize issues that have not been addressed yet, not make them disappear. Thanks for your help!
dnadlinger commentedon Jul 10, 2023
This still doesn't appear to be resolved in matplotlib proper.
QuLogic commentedon Apr 10, 2026
The
text-overhaulbranch is now merged tomain.