@embedpdf/fonts-jp (英语)
日文(Shift-JIS)倒置字体为EmbedPDF.
包含字体
诺托·桑斯JP的全部7个重:
NotoSansJP-Thin.otf- 瘦重(100个)NotoSansJP-Light.otf- 轻重量(300)NotoSansJP-DemiLight.otf- 重量(350)NotoSansJP-Regular.otf- 正常重量(400)NotoSansJP-Medium.otf- 中重量(500)NotoSansJP-Bold.otf- 粗体重量(700美元)NotoSansJP-Black.otf- 黑色(900美元)
使用量
import { FontCharset } from '@embedpdf/models';
const fontFallback = {
fonts: {
[FontCharset.SHIFTJIS]: [
{ url: 'NotoSansJP-Thin.otf', weight: 100 },
{ url: 'NotoSansJP-Light.otf', weight: 300 },
{ url: 'NotoSansJP-DemiLight.otf', weight: 350 },
{ url: 'NotoSansJP-Regular.otf', weight: 400 },
{ url: 'NotoSansJP-Medium.otf', weight: 500 },
{ url: 'NotoSansJP-Bold.otf', weight: 700 },
{ url: 'NotoSansJP-Black.otf', weight: 900 },
],
},
baseUrl: 'https://cdn.jsdelivr.net/npm/@embedpdf/fonts-jp@1/fonts',
};
或使用预配置的 CDN 配置 :
import { cdnFontConfig } from '@embedpdf/engines/pdfium';
const native = new PdfiumNative(pdfiumModule, {
fontFallback: cdnFontConfig,
});
许可证
这些字体根据 SIL 开放字体许可证 1.1。 。 。 .
Noto Sans JP是谷歌有限责任公司的一个商标.