The code posted below will return the following: RuntimeError: TrueType font is missing table . It looks like TTC files have replaced TTF files for many fonts in Windows 8. Please consider adding support. Thanks so much,
This issue has been inactive for a while. Does this continue to represent a useful enhancement? I believe the PR associated with this has stalled a little. Thanks!
In #9897@anntzer (who is probably best suited to looking at this) said there were technical limitations to getting ttc files to work with pdf/ps. So probably someone who strongly needed this would need to dig into things, some of which may be quite arcane.
Note that fontfamily='Helvetica' still seems to work on macOS (Catalina) because there are also Helvetica .ttf files in /Library/Fonts, and the OSXFontDirectories variable in font_manager.py gives these files the priority (this was on my system only!).
Emojis in PDF might need to wait, since the color formats are also an issue beyond just TTC. I heard that Clerk Ma is doing something to XeTeX to allow them -- maybe we can use his work if the license and stuff works.
The current PR works, but converting by splitting is, at the end of the day, less than perfect -- especially if you have something like a 35-in-one Source Han Sans SuperOTC installed (I used to have that. I probably still do, but I'm too lazy to check.). The ideal is to find an alternative to _ttconv somewhere -- the TeX people might have the answer, I don't know.
Activity
petehuang commented on Dec 29, 2016
Hi,
This issue has been inactive for a while. Does this continue to represent a useful enhancement? I believe the PR associated with this has stalled a little. Thanks!
spinicist commented on Sep 20, 2018
A lot of the fonts I want to use on Mac (principally Gill Sans) are also TTC, so I would love to see #9787 merged.
lukelbd commented on Jan 3, 2020
Friendly ping. I ran into this issue when testing various sans-serif fonts. Who would have the expertise to address this?
jklymak commented on Jan 3, 2020
#9897 is in Matplotlib 3.1. Does it not go far enough? I take it there are some issues with pdf/ps.
lukelbd commented on Jan 3, 2020
I have matplotlib 3.1.1, issue is still present.
This is an issue specifically with the PDF backend (not sure about PS). The title should probably be changed to reflect this.
lukelbd commented on Jan 3, 2020
Also, I am on macOS, not windows.
jklymak commented on Jan 3, 2020
In #9897 @anntzer (who is probably best suited to looking at this) said there were technical limitations to getting ttc files to work with pdf/ps. So probably someone who strongly needed this would need to dig into things, some of which may be quite arcane.
lukelbd commented on Jan 3, 2020
In the meantime here is a working example for macOS:
Note that fontfamily='Helvetica' still seems to work on macOS (Catalina) because there are also Helvetica .ttf files in /Library/Fonts, and the OSXFontDirectories variable in font_manager.py gives these files the priority (this was on my system only!).
13 remaining items
dhyanKaro commented on Dec 27, 2023
Emojis!
Artoria2e5 commented on Feb 20, 2024
Emojis in PDF might need to wait, since the color formats are also an issue beyond just TTC. I heard that Clerk Ma is doing something to XeTeX to allow them -- maybe we can use his work if the license and stuff works.
The current PR works, but converting by splitting is, at the end of the day, less than perfect -- especially if you have something like a 35-in-one Source Han Sans SuperOTC installed (I used to have that. I probably still do, but I'm too lazy to check.). The ideal is to find an alternative to _ttconv somewhere -- the TeX people might have the answer, I don't know.
QuLogic commented on Apr 10, 2026
The text-overhaul branch is now merged to main.