muse-create-font-file.pl - Generate a JSON file with font paths
=head1 SYNOPSIS
muse-create-font-file.pl [ outputfile.json ]
If the argument is not provided, output the JSON to the STDOUT.
=cut
ext::Amuse::Compile::Fonts::Import;
use utf8;
use strict;
use warnings;
use IPC::Run qw/run/;
use JSON::MaybeXS ();
use Text::Amuse::Compile::Fonts;
use Moo;
use Data::Dumper;
=head1 NAME
Text::Amu
indows if imagemagick is installed.
=head1 ACCESSOR
=head2 output
The output file to write the json to. If not provided, it will print on the STDOUT.
=head1 PUBLIC METHODS
=head2 import_and_save
arse the font list and output it to the file, if provided to the
constructor, otherwise print the JSON on the standard output.
=head1 INTERNAL METHODS
=over 4
=item use_fclist
=item use_imagemagic
use utf8;
use strict;
use warnings;
use Types::Standard qw/ArrayRef InstanceOf/;
use JSON::MaybeXS qw/decode_json/;
use Text::Amuse::Compile::Fonts::Family;
use Text::Amuse::Compile::Fonts::File;
use
n pass the same structure if you got it serialized to
# json and saved to a file.
my $fonts = Text::Amuse::Compile::Fonts->new($json_file);
my @fonts = $fonts->all_fonts;
=head1 DESCRIPT
s, which
has to be provided to the constructor via a json file or as an
arrayref of L<Text::Amuse::Compile::Fonts::Family> objects.
To build a json file with some default fonts, you may want to try
L
ry
Repeatable. Directory where to look for included files.
=item --fontspec fontspec.json
A specification JSON file with the list of fonts. This permits you to
use arbitrary fonts. To create one wi