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 。