Automattic/node-canvas

Allow registering custom fonts from a buffer

オープン

#386 opened on 2014/02/13

 (4 件のコメント) (0 件のリアクション) (0 人の担当者)JavaScript (1,195 件のフォーク)batch import
FeatureHelp wantedText & Fonts

Repository metrics

Stars
 (10,689 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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.

コントリビューターガイド