Adding missing Fontconfig.pm.
This commit is contained in:
parent
c4557a28e6
commit
d3e4e0565c
20
lib/Exd/FileFormat/Fontconfig.pm
Normal file
20
lib/Exd/FileFormat/Fontconfig.pm
Normal 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;
|
Loading…
Reference in New Issue
Block a user