Skip to content

with mathtext.fontset = "cm", \mathbf doesn't make *digits* bold #15338

Description

@anntzer

Bug report

Bug summary

When using computer modern mathtext, \mathbf (actuall, also \mathsf) has no effects on digits.

Code for reproduction

rcParams["mathtext.fontset"] = "cm"; figtext(.5, .5, r"$\mathbf{foo123}$")

Actual outcome

test

Expected outcome

bold digits, as if passing usetex = True:
usetex

Matplotlib version

  • Operating system: linux
  • Matplotlib version: master, as far back as 2.0 at least
  • Matplotlib backend (print(matplotlib.get_backend())): agg
  • Python version: 37
  • Jupyter version (if applicable):
  • Other libraries:

Activity

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

    keepItems to be ignored by the “Stale” Github Actionstatus: inactiveMarked by the “Stale” Github Actiontopic: text/mathtext

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions