Automattic/node-canvas

Allow registering custom fonts from a buffer

开放

#386 创建于 2014年2月13日

 (4 条评论) (0 个反应) (0 位负责人)JavaScript (1,195 个派生)batch import
FeatureHelp wantedText & Fonts

仓库指标

星标
 (10,689 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

For use with jsdom package which simulates browser DOM in node.js and use node-canvas for canvas implementation a support to load fonts (truetype and openfont) from a buffer/content is needed. Because in HTML a custom font face can be specified as an URL, jsdom resolves this URL to a buffer/content by itself. So registration with buffer/content should be possible.

See https://github.com/tmpvar/jsdom/issues/744 for more details.

贡献者指南