8000 [Bug]: meta tables warn they cannot be subset · Issue #24025 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content
[Bug]: meta tables warn they cannot be subset #24025
Closed
@remaker789

Description

@remaker789

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0