Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[ENH]: Allow specifying a typeface instead of a font #29866

Open
@thangleiter

Description

@thangleiter

Problem

Matplotlib has font settings for each font family. This makes it unnecessarily cumbersome to adopt a consistent appearance when using different families.

Proposed solution

Instead of specifying a font for every family, it would be handy to simply configure matplotlib to use a certaintypeface, e.g. through a rc keyfont.typeface. matplotlib could then try to find the font matchingfont.typeface and the family specified byfont.family.

For example, settingfont.typeface = 'DejaVu' andfont.family = 'sans' would resolve toDejaVu Sans. This would arguably make it easier to switch font families and stay within a given typeface for a consistent appearance. If no match is found, one could always fall back to the fonts listed infont.{family}.

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


      [8]ページ先頭

      ©2009-2025 Movatter.jp