imagemagick-macos-font-setup

2.0.2 • Public • Published

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!')
})

/imagemagick-macos-font-setup/

    Package Sidebar

    Install

    npm i imagemagick-macos-font-setup

    Weekly Downloads

    4

    Version

    2.0.2

    License

    GPL-3.0

    Unpacked Size

    15.5 kB

    Total Files

    5

    Last publish

    Collaborators

    • dustin.tinney
    • mike.testdouble
    • searls