Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Bug]: meta tables warn they cannot be subset #24025

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
remaker789 opened this issue Sep 28, 2022 · 1 comment · Fixed by #25985
Closed

[Bug]: meta tables warn they cannot be subset #24025

remaker789 opened this issue Sep 28, 2022 · 1 comment · Fixed by #25985

Comments

@remaker789
Copy link

Bug summary

When using custom fonts( like Times New Roman) and saving the figure as PDF(TrueType), the terminal gives a warning: "meta NOT subset; don't know how to subset; dropped"

Code for reproduction

import numpy as np
import matplotlib.pyplot as plt

plt.rcParams['pdf.fonttype'] = 42
plt.rcParams['font.family'] = "Times New Roman"

x = np.arange(1,6,1)
y= x**2
plt.plot(x,y)
plt.savefig("./test.pdf")

plt.show()

Actual outcome

meta NOT subset; don't know how to subset; dropped
test.pdf

Expected outcome

I would like to know if the warning: "meta NOT subset; don't know how to subset; dropped" will affect the output figure. It would be good news for me if this warning can be figured out.

Additional information

No response

Operating system

Windows

Matplotlib Version

3.6.0

Matplotlib Backend

QtAgg

Python version

Python 3.9.12

Jupyter version

No response

Installation

pip

@QuLogic
Copy link
Member

QuLogic commented May 25, 2023

I couldn't see any issues in the output PDF. But I'm also not sure where that output is from, as it doesn't appear in Matplotlib code.

QuLogic added a commit to QuLogic/matplotlib that referenced this issue May 26, 2023
This table contains a list of design/supported languages, which it
doesn't make sense to keep in a subset.

Fixes matplotlib#24025
QuLogic added a commit to QuLogic/matplotlib that referenced this issue May 31, 2023
This table contains a list of design/supported languages, which it
doesn't make sense to keep in a subset.

Fixes matplotlib#24025
@tacaswell tacaswell added this to the v3.7.2 milestone May 31, 2023
devRD pushed a commit to devRD/matplotlib that referenced this issue Jun 5, 2023
This table contains a list of design/supported languages, which it
doesn't make sense to keep in a subset.

Fixes matplotlib#24025
melissawm pushed a commit to melissawm/matplotlib that referenced this issue Jun 15, 2023
This table contains a list of design/supported languages, which it
doesn't make sense to keep in a subset.

Fixes matplotlib#24025
@QuLogic QuLogic changed the title [Bug]: Warning: "meta NOT subset; don't know how to subset; dropped" comes out when using custom fonts( like Times New Roman) and saving figure as PDF(TrueType), [Bug]: meta tables warn they cannot be subset Jul 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants