Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add font.superfamily support with genre-aware resolution#30155

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.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
socram-somel wants to merge1 commit intomatplotlib:main
base:main
Choose a base branch
Loading
frombruswaine:feature_29866

Conversation

socram-somel
Copy link

Closes#29866

Adds support for rcParam 'font.superfamily', allowing users to define logical font groups (superfamilies) that span multiple genres like 'serif', 'sans', and 'mono'.

Each superfamily maps genre + weight + style to real font names using keys like 'bold-italic' or 'normal-normal'.

Font resolution uses genre from font.family and matches against the selected superfamily, trying exact and fallback variants in order of specificity to generality.

Superfamilies can be defined by name (preloaded registry) or passed as inline dicts in rcParams['font.superfamily'].

Legacy behavior is preserved unless superfamily is set. If set, genre-aware matching replaces generic family name.

Includes defaults for DejaVu, Noto, Liberation, and more.

PR summary

PR checklist

Closesmatplotlib#29866This commit adds support for rcParam 'font.superfamily',allowing users to define logical font groups (superfamilies)that span multiple genres like 'serif', 'sans', and 'mono'.Each superfamily maps genre + weight + style to real fontnames using keys like 'bold-italic' or 'normal-normal'.Font resolution uses genre from font.family and matchesagainst the selected superfamily, trying exact and fallbackvariants in order of specificity to generality.Superfamilies can be defined by name (preloaded registry)or passed as inline dicts in rcParams['font.superfamily'].Legacy behavior is preserved unless superfamily is set.If set, genre-aware matching replaces generic family name.Includes defaults for DejaVu, Noto, Liberation, and more.Co-authored-by: Tiago Marques <tiago.l.marques@tecnico.ulisboa.pt>
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

[ENH]: Allow specifying a typeface instead of a font
1 participant
@socram-somel

[8]ページ先頭

©2009-2025 Movatter.jp