Skip to content

ft2font: Split named instance count from style flags#29431

Merged
oscargus merged 1 commit into
matplotlib:mainfrom
QuLogic:ft2font-instances
Jan 8, 2025
Merged

ft2font: Split named instance count from style flags#29431
oscargus merged 1 commit into
matplotlib:mainfrom
QuLogic:ft2font-instances

Conversation

@QuLogic

@QuLogic QuLogic commented Jan 8, 2025

Copy link
Copy Markdown
Member

PR summary

These are unrelated, and it breaks the enum since the instance count is outside the defined flags.

Note, tests are always 0 since we don't ship variable fonts, but I did test the example on Inter Variable and got 9 as expected.

It's a bit of an API change, but I think small enough to warrant backporting directly instead of the other options in #29396.

Fixes #29396

PR checklist

These are unrelated, and breaks the enum since the instance count is
outside the defined flags.
@QuLogic QuLogic added Release critical For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions. topic: text/fonts labels Jan 8, 2025
@QuLogic QuLogic added this to the v3.10.1 milestone Jan 8, 2025
@github-actions github-actions Bot added the Documentation: examples files in galleries/examples label Jan 8, 2025
@oscargus oscargus merged commit a61e118 into matplotlib:main Jan 8, 2025
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Jan 8, 2025
@QuLogic QuLogic deleted the ft2font-instances branch January 8, 2025 09:22
oscargus added a commit that referenced this pull request Jan 8, 2025
…431-on-v3.10.x

Backport PR #29431 on branch v3.10.x (ft2font: Split named instance count from style flags)
@ksunden ksunden mentioned this pull request Mar 3, 2025
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Documentation: examples files in galleries/examples Release critical For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions. topic: text/fonts

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Style flag errors trying to save figures as PDF with font Inter

3 participants