The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Text::Amuse::Compile::Fonts::Import - create a list of fonts to be used with Text::Amuse::Compile

DESCRIPTION

This module is basically an hack. It parses the output of fc-list or identify (from imagemagick) to get a list of font paths.

It should work on Windows if imagemagick is installed.

ACCESSOR

output

The output file to write the json to. If not provided, it will print on the STDOUT.

PUBLIC METHODS

import_and_save

Parse the font list and output it to the file, if provided to the constructor, otherwise print the JSON on the standard output.

INTERNAL METHODS

use_fclist
use_imagemagick
try_list
all_fonts
import_with_fclist
import_with_imagemagick
import_list
as_json