-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
When running the script from a different directory, it throws an exception as the font cannot be found.
php examples/BasicUsage.php
PHP Fatal error: Uncaught Intervention\Image\Exceptions\FontException: Font file fonts/ipaexg.ttf does not exist. in /home/macocci7/php/PHP-Plotter2d/vendor/intervention/image/src/Typography/Font.php:82
Stack trace:
#0 /home/macocci7/php/PHP-Plotter2d/vendor/intervention/image/src/Typography/FontFactory.php(36): Intervention\Image\Typography\Font->setFilename()
#1 /home/macocci7/php/PHP-Plotter2d/src/Traits/DrawerTrait.php(698): Intervention\Image\Typography\FontFactory->filename()
#2 /home/macocci7/php/PHP-Plotter2d/vendor/intervention/image/src/Typography/FontFactory.php(27): Macocci7\PhpPlotter2d\Plotarea->{closure:Macocci7\PhpPlotter2d\Traits\DrawerTrait::drawText():689}()
#3 /home/macocci7/php/PHP-Plotter2d/vendor/intervention/image/src/Image.php(623): Intervention\Image\Typography\FontFactory->__construct()
#4 /home/macocci7/php/PHP-Plotter2d/src/Traits/DrawerTrait.php(685): Intervention\Image\Image->text()
#5 /home/macocci7/php/PHP-Plotter2d/src/Traits/PlotterTrait.php(324): Macocci7\PhpPlotter2d\Plotarea->drawText()
#6 /home/macocci7/php/PHP-Plotter2d/src/Canvas.php(83): Macocci7\PhpPlotter2d\Plotarea->plotText()
#7 /home/macocci7/php/PHP-Plotter2d/examples/BasicUsage.php(26): Macocci7\PhpPlotter2d\Canvas->__call()
#8 {main}
thrown in /home/macocci7/php/PHP-Plotter2d/vendor/intervention/image/src/Typography/Font.php on line 82
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working