Adding missing Fontconfig.pm.

This commit is contained in:
sergiotarxz 2024-10-17 22:30:31 +02:00
parent c4557a28e6
commit d3e4e0565c

View File

@ -0,0 +1,20 @@
package Exd::FileFormat::Fontconfig;
use v5.40.0;
use strict;
use warnings;
use Moo;
use Path::Tiny;
has exd => (is => 'ro', required => 1, weak_ref => 1);
sub migration1($self) {
my $exd = $self->exd;
my $app_font_dir = path(__FILE__)->parent->parent->parent->parent->child('fonts/dir');
my $exd_font_dir = $self->exd->dir->child('fonts/dir');
$exd_font_dir->mkpath;
system 'cp', '-r', $app_font_dir, $exd_font_dir;
}
1;