From d3e4e0565c9a2f9da350dc29a8ae06099ee1c16d Mon Sep 17 00:00:00 2001 From: sergiotarxz Date: Thu, 17 Oct 2024 22:30:31 +0200 Subject: [PATCH] Adding missing Fontconfig.pm. --- lib/Exd/FileFormat/Fontconfig.pm | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 lib/Exd/FileFormat/Fontconfig.pm diff --git a/lib/Exd/FileFormat/Fontconfig.pm b/lib/Exd/FileFormat/Fontconfig.pm new file mode 100644 index 0000000..22adacb --- /dev/null +++ b/lib/Exd/FileFormat/Fontconfig.pm @@ -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;