You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Type42 font embedding broken for fonts without glyph names #18307
Setting pdf.fonttype or ps.fonttype to 42 and using a font with no glyph names (i.e. for which FT_HAS_GLYPH_NAMES returns 0) results in non-displayed text.
Code for reproduction
Arial is a prominent font with no glyph names (so it's not a completely obscure edge case...).
This issue has been marked "inactive" because it has been 365 days since the last comment. If this issue is still present in recent Matplotlib releases, or the feature request is still wanted, please leave a comment and this label will be removed. If there are no updates in another 30 days, this issue will be automatically closed, but you are free to re-open or create a new issue if needed. We value issue reports, and this procedure is meant to help us resurface and prioritize issues that have not been addressed yet, not make them disappear. Thanks for your help!
I can't reproduce this on Windows, at least for PDF output on main. The Arial font there appears to have flags of FT_FACE_FLAG_SCALABLE | FT_FACE_FLAG_SFNT | FT_FACE_FLAG_HORIZONTAL | FT_FACE_FLAG_KERNING | FT_FACE_FLAG_EXTERNAL_STREAM | FT_FACE_FLAG_HINTER.
Activity
github-actions commentedon Aug 16, 2023
This issue has been marked "inactive" because it has been 365 days since the last comment. If this issue is still present in recent Matplotlib releases, or the feature request is still wanted, please leave a comment and this label will be removed. If there are no updates in another 30 days, this issue will be automatically closed, but you are free to re-open or create a new issue if needed. We value issue reports, and this procedure is meant to help us resurface and prioritize issues that have not been addressed yet, not make them disappear. Thanks for your help!
QuLogic commentedon Aug 18, 2023
I can't reproduce this on Windows, at least for PDF output on
main. The Arial font there appears to have flags ofFT_FACE_FLAG_SCALABLE | FT_FACE_FLAG_SFNT | FT_FACE_FLAG_HORIZONTAL | FT_FACE_FLAG_KERNING | FT_FACE_FLAG_EXTERNAL_STREAM | FT_FACE_FLAG_HINTER.anntzer commentedon Aug 23, 2023
Indeed, this seems to have been fixed in the meantime (likely due to the switch to fonttools).