Skip to content

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

Closed

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

Activity

  1. QuLogic commented on May 25, 2023

    @QuLogic
    Member

    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.

  2. added 2 commits that reference this issue on May 26, 2023
    cdbb556
    11589f2
  3. added this to the v3.7.2 milestone on May 31, 2023
  4. added a commit that references this issue on Jun 5, 2023
    530f837
  5. added a commit that references this issue on Jun 15, 2023
    c5d3568
  6. 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[/+] on Jul 5, 2023
  7. added 4 commits that reference this issue on Apr 19, 2026
    cf8af38
    506ecda
    11b9e2f
    94f6395
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions