imagemagick-macos-font-setup
v2.0.2
Published
Sets up user fonts for imagemagick on macOS
Downloads
1
Readme
imagemagick-macos-font-setup
This is a little utility for making ImageMagick aware of any user fonts you've installed in macOS.
Prerequisites
This will explode if you haven't installed ImageMagick. First, do that with Homebrew:
$ brew install imagemagick
Installation
Just install it globally via npm to get the binary onto your path:
$ npm i -g imagemagick-macos-font-setup
Usage
CLI
From the command line, run:
$ imagemagick-macos-font-setup
Which will evaluate a tweaked fork of this Perl script and overwrite your ImageMagick font definition in ~/.config/ImageMagick/type.xml
.
API
You can also invoke this via JavaScript with a simple callback interface:
require('imagemagick-macos-font-setup')(function (er) {
if (er) throw er
console.log('Fonts configured!')
})