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.

貢獻者指南