Thanks to visit codestin.com
Credit goes to github.com

Skip to content

font_manager.get_fontconfig_fonts() reports a single item of all fonts concatenated #7906

Closed
@sandrotosi

Description

@sandrotosi

as reported on Debian as http://bugs.debian.org/852060:

While using matplotlib to list installed files in a python3 script:
font_manager.get_fontconfig_fonts(),
the list I get has only one element, that contains all fonts names concatenated.

I've tried replacing
out = subprocess.check_output([str('fc-list'), '--format=%{file}'])
on line 284 by:
out = subprocess.check_output([str('fc-list'), '--format=%{file}\\n'])
and that works.

I can confirm this happens on both py2 and py3

do you think that's the right approach or is there a better way to fix this issue? thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions