Skip to content
This repository has been archived by the owner on Jan 10, 2024. It is now read-only.

testdouble/imagemagick-macos-font-setup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Sets up user fonts for imagemagick on macOS

Resources

Stars

Watchers

Forks

Packages

No packages published