Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin uses GD extension with freetype enabled, but doesn't do required/optional in a environment.xml #233

Open
danowar2k opened this issue Apr 27, 2023 · 1 comment

Comments

@danowar2k
Copy link
Contributor

Moodle provides the ability to do an environment.xml where you describe which PHP version or PHP extensions your plugin needs.

Moodle core requires the GD extension, but doesn't check apart from "is this extension present".

You use freetype only functions, e.g. imagettfbbox() and imagettftext(). Could you add an environment.xml with a "required" for GD and an "optional check" with a custom function checking if freetype is enabled?

It would help others to determine the requirements to use this plugin better.

@danowar2k
Copy link
Contributor Author

Corresponding Moodle core issue (they use freetype, too): https://tracker.moodle.org/browse/MDL-58999

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant