Skip to content

Instantly share code, notes, and snippets.

@insanehunter
Created September 25, 2015 13:20
Show Gist options
  • Save insanehunter/bbc18f392e06efd1a01e to your computer and use it in GitHub Desktop.
Save insanehunter/bbc18f392e06efd1a01e to your computer and use it in GitHub Desktop.
шелл скрипт который фиксит шрифты в имаеджмеджике
# Make a new directory for ImageMagick local settings and cd into it
mkdir ~/.magick
cd ~/.magick
# Grab script to find all fonts on system and store them in a config file
curl http://www.imagemagick.org/Usage/scripts/imagick_type_gen > type_gen
# Run script, telling it where my fonts are and create "type.xml" file with list
find /System/Library/Fonts /Library/Fonts ~/Library/Fonts -name "*.[to]tf" | perl type_gen -f - > type.xml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment