@embedpdf/fonts-tc

中文文档
1.0.0发布于 2025/12/28OFL-1.1TypeScriptESM + CJS零依赖近 30 天下载 314.2万

传统汉语( Big5) EmbedPDF 倒置字体 - Noto Sans Hant (7 重)

中文使用文档
文档目录3 节
  1. 包含字体
  2. 使用量
  3. 许可证

@embedpdf/fonts-tc

传统中文(Big5)倒置字体为EmbedPDF.

包含字体

诺托·桑斯·汉特(传统汉语:

  • NotoSansHant-Thin.otf - 瘦重(100个)
  • NotoSansHant-Light.otf - 轻重量(300)
  • NotoSansHant-DemiLight.otf - 重量(350)
  • NotoSansHant-Regular.otf - 正常重量(400)
  • NotoSansHant-Medium.otf - 中重量(500)
  • NotoSansHant-Bold.otf - 粗体重量(700美元)
  • NotoSansHant-Black.otf - 黑色(900美元)

使用量

import { FontCharset } from '@embedpdf/models';

const fontFallback = {
  fonts: {
    [FontCharset.CHINESEBIG5]: [
      { url: 'NotoSansHant-Thin.otf', weight: 100 },
      { url: 'NotoSansHant-Light.otf', weight: 300 },
      { url: 'NotoSansHant-DemiLight.otf', weight: 350 },
      { url: 'NotoSansHant-Regular.otf', weight: 400 },
      { url: 'NotoSansHant-Medium.otf', weight: 500 },
      { url: 'NotoSansHant-Bold.otf', weight: 700 },
      { url: 'NotoSansHant-Black.otf', weight: 900 },
    ],
  },
  baseUrl: 'https://cdn.jsdelivr.net/npm/@embedpdf/fonts-tc@1/fonts',
};

或使用预配置的 CDN 配置 :

import { cdnFontConfig } from '@embedpdf/engines/pdfium';

const native = new PdfiumNative(pdfiumModule, {
  fontFallback: cdnFontConfig,
});

许可证

这些字体根据 SIL 开放字体许可证 1.1。 。 。 .

Noto Sans Hant是谷歌有限责任公司的一个商标.

版本与发布记录

@embedpdf/fonts-tc 共发布 1 个版本,首次发布于 2025/12/28;过去 12 个月发布了 1 个版本。

版本发布日期距今
1.0.0latest2025/12/2810 个月前

关于 @embedpdf/fonts-tc 的常见问题

@embedpdf/fonts-tc 是什么?

传统汉语( Big5) EmbedPDF 倒置字体 - Noto Sans Hant (7 重)

如何安装 @embedpdf/fonts-tc?

在项目目录运行 npm install @embedpdf/fonts-tc,或使用 pnpm add / yarn add / bun add。

@embedpdf/fonts-tc 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@embedpdf/fonts-tc 支持 ESM 还是 CommonJS?

同时提供 ES Module 与 CommonJS 入口,import 和 require() 都可以使用,打包工具会自动选择合适的版本。

@embedpdf/fonts-tc 可以商用吗?

@embedpdf/fonts-tc 使用 OFL-1.1 许可。声明的许可为 OFL-1.1,请阅读许可原文确认使用条件。以上为概括,不构成法律意见,请以许可原文为准。

@embedpdf/fonts-tc 的下载量有多少?

根据 npm 官方下载统计,@embedpdf/fonts-tc 在 2026/10/14 – 2026/11/12 这 30 天内被下载 3,141,970 次,日均约 104,732 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@embedpdf/fonts-tc 还在维护吗?

最新版本 1.0.0 发布于 2025/12/28(10 个月前);至今共发布 1 个版本,其中过去 12 个月发布了 1 个;首次发布于 2025/12/28。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。