Skip to content

鼠鬚管:如何查找合用字體之名

LEO Yoon-Tsaw edited this page Sep 28, 2024 · 4 revisions

鼠鬚管需要正確的字體名才能識別字體,多餘/缺少空格都會導致字體不能識別,目前也沒有辦法模糊識別。如果您使用中發現字體設置未生效,可參攷以下方法找到正確字體名。

以下操作需在終端機(Terminal)中完成:

  • 安裝fontconfig: brew install fontconfig
  • 輸入:fc-list,然後搜索想找的字體,如下圖所示:
image

蘋方-繁蘋方-繁-Regular蘋方-繁-標準體PingFang TC-RegularPingFang TCPingFang TC-標準體都可以使用。 PingFangTC-Regular也可以但需注意這是字體本名,並非基於以上信息所得,PingFangTC不行。


Squirrel needs correct font name to load your fonts. Nuance in font names like space matters. To find the correct font name to use, follow below instruction in Terminal.

  • Install fontconfig: brew install fontconfig
  • type fc-list, find your desired fonts in the print out, examples below:

As shown in screenshot above, usable font names are: PingFang TC-Regular, PingFang TC, PingFang TC-標準體, 蘋方-繁, 蘋方-繁-Regular, 蘋方-繁-標準體. PingFangTC-Regular works but it's the code name for the font, which is not shown by the command. Names like PingFangTC won't work.