8000 get_fontconfig_fonts() returning not a list but a concatenation of file names · Issue #8635 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content
get_fontconfig_fonts() returning not a list but a concatenation of file names #8635
Closed
@adlvdl

Description

@adlvdl

Bug report

Bug summary

The method get_fontconfig_fonts() in matplotlib.font_manager should return a list of files according to the documentation but in my machine it returns a list with one element that represents all paths concatenated. The snippet comes from a stack-overflow answer.

Code for reproduction

import matplotlib.font_manager
flist = matplotlib.font_manager.get_fontconfig_fonts()
names = [matplotlib.font_manager.FontProperties(fname=fname).get_name() for fname in flist]
print(names)

Actual outcome

OSError: [Errno 36] File name too long

Expected outcome

It should return a list of names

Matplotlib version

  • Operating System: Fedora 25
  • Matplotlib Version: 2.0.0
  • Python Version: 3.5
  • Jupyter Version (if applicable):
  • Other Libraries:

I think I used pip3 to install matplotlib but I'm not 100% sure.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0