avatar

sunday

Sunday's Blog

  • 首页
Home 如何查找字体的family名称
文章

如何查找字体的family名称

Posted 2024-12-3 Updated 2024-12- 3
By sunday
4~5 min read

有时一些软件引用字体总是需要填写字体的family名称,但是实际情况是字体文件的名称不总是等于family里的名称

1.mac上查找字体family名称

请确保安装了fontconfig

没有则执行 brew install fontconfig

然后执行查找命令

fc-scan -b /Users/user/Desktop/project/public/fonts/custom.ttf

会输出以下信息,里面有个family字段,如下面的Slideqiuhong就是family的名称

Pattern has 26 elts (size 32)
        family: "Slideqiuhong"(s) "演示秋鸿楷"(s)
        familylang: "en"(s) "zh-cn"(s)
        style: "Regular"(s)
        stylelang: "en"(s)
        fullname: "Slideqiuhong Regular"(s)
        fullnamelang: "en"(s)
        slant: 0(i)(s)
        weight: 80(f)(s)
        width: 100(f)(s)
        foundry: "UKWN"(s)
        file: "/Users/user/Desktop/project/public/fonts/custom.ttf"(s)
        index: 0(i)(s)
        outline: True(s)
        scalable: True(s)
        fontversion: 65536(i)(s)
        capability: "otlayout:DFLT"(s)
        fontformat: "TrueType"(s)
        decorative: False(s)
        postscriptname: "Slideqiuhong-Regular"(s)
        color: False(s)
        symbol: False(s)
        variable: False(s)
        fonthashint: False(s)
        order: 0(i)(s)
        namedinstance: False(s)
        fontwrapper: "SFNT"(s)

2.window上查找字体的family名称(未实践)

可以下载这个软件https://www.high-logic.com/font-editor/fontcreator 然后根据文件名找到字体,查看属性即可

或者安装这个https://cn.x-cmd.com/install/fontconfig以执行和Mac相关的命令

疑难杂症, 软件使用
软件使用 疑难杂症
License:  CC BY 4.0
Share

Further Reading

Mar 27, 2025

解决nextjs15使用useLocalStorage报错的问题

已经在组件中使用"use client"声明了,还是报错,错误如下: Unhandled Runtime Error Error: useLocalStorage is a client-only hook 1.解决方案1-使用 dynamic 导入 import dynamic from 'nex

Dec 21, 2024

让debian12笔记本盒盖不休眠

1.打开终端,编辑 /etc/systemd/logind.conf 文件,查找下面的选项并改成下面那样 HandleLidSwitch=ignore HandleLidSwitchExternalPower=ignore LidSwitchIgnoreInhibited=no

Dec 3, 2024

如何查找字体的family名称

有时一些软件引用字体总是需要填写字体的family名称,但是实际情况是字体文件的名称不总是等于family里的名称 1.mac上查找字体family名称 请确保安装了fontconfig 没有则执行 brew install fontconfig 然后执行查找命令 fc-scan -b /Users

OLDER

windows11设置远程无密码登陆

NEWER

supabase postgres updatedAt 自动更新时间戳

Recently Updated

  • nextjs15使用better-sqlite3的连接报错问题
  • nextjs + clerk + supabase + realtime 实时监听数据库更改
  • 解决nextjs15使用useLocalStorage报错的问题
  • mac上使用nodejs appium控制chrome浏览器
  • 2024年终总结

Trending Tags

nginx acme 强制跳转HTTPS nodejs 代理 mac 神器 vue3 工具 docker

Contents

©2025 sunday. Some rights reserved.

Using the Halo theme Chirpy