@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是谷歌有限责任公司的一个商标.