URW Core35 Fonts
1.0.0
这些是每个Ghostscript安装中包含的字体的WOFF2版本。这些字体最初是由德国字体Foundry Urw ++为Artifex软件创建的,后来将其发布在GNU Affero通用公共许可证下。
可从git.ghostscript.com/urw-core35-fonts.git获得core35字体的源文件,在其中保持了四种不同格式:afm,opentype,type1和trueType。
从破坏性的发行版中提取字体,或者像其他任何一个一样安装此模块:
npm install urw-core35-fonts请注意:
该模块中没有JavaScript。该软件包的“入口点”是其主要样式表index.css ,它为每个捆绑的字体 - 家庭及其变体都保留@font-face规则:
node_modules
└── urw-core35-fonts
├── index.css
└── fonts
├── C059-BdIta.woff2
├── NimbusMonoPS-Bold.woff2
├── NimbusMonoPS-BoldItalic.woff2
├── URWBookman-DemiItalic.woff2
└── ... +32 other items
您可以使用HTML link附加字体表:
< link rel =" stylesheet " type =" text/css " href =" node_modules/urw-core35-fonts/index.css " />或者,如果您需要一种更编程的方法来定位包或其资产,请使用require.resolve 。
const cssPath = require . resolve ( "urw-core35-fonts/index.css" ) ;
console . log ( cssPath ) = > "/foo/node_modules/urw-core35-fonts/index.css" ; 这些字体根据GNU Affero通用公共许可证v3.0发布。该软件包中包含了Ghostscript项目许可信息的逐字副本;请COPYING和LICENSE 。