Closed (outdated)
Project:
Image Effects
Version:
8.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
22 Nov 2017 at 13:35 UTC
Updated:
22 Dec 2025 at 10:12 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
stborchertInstead of using
<?php opendir(); ?>and<?php readdir(); ?>I simply used<?php file_scan_directory(); ?>to get all fonts from the given directory and its subdirectories.Comment #3
mondrakeThank you!
Looks nice, it would help to adjust
Drupal\Tests\image_effects\Functional\SelectorPluginTest::testFontSelectorto cover the change.Also, to be nitpicky the UI text will be a bit off after the change, i.e.
* help = @Translation("Access a list of fonts stored in the directory specified in configuration.")and
'#description' => $this->t('Location of the directory where the fonts are stored.')and others should be rephrased to cater for the fact that subdirectories will be scanned too. But that'd be a string change and we're stable now, so I'd rather have a follow-up for a future new branch.
Comment #4
mondrakeClosing any stale issue with latest comment over 5 years old.