FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

font_manager.get_fontconfig_fonts() reports a single item of all fonts concatenated · Issue #7906 · matplotlib/matplotlib · GitHub

Repository navigation

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

Closed

Description

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!

Activity

  1. jkseppan commented on Jan 21, 2017

    Member

    Yes, I think including the newline in the format string is correct. It seems that we used to do that but accidentally lost the newline in #7596.

  2. added this to the milestone on Jan 21, 2017
  3. added a commit that references this issue on Jan 21, 2017
    f111088
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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


      Back | FazBrowse Home | New Git URL