preface

When dealing with the problem of image composition, I found that if PingFang SC font is used for SVG images, Chinese cannot be recognized in Linux system and garbled characters will be displayed

PingFang SC

How to install PingFangSC font on Linux?

  1. PingFangSC TTF font PingFangSC TTF font

  2. Put the downloaded fonts in /usr/share/fonts/apple

  3. Run the fc-cache command to refresh the font cache

  4. Using Linux command fc – the list | grep the font used to view the current system font