Out there in #2655044: Add "Text overlay" image effect, I forgot to move from Textimage the hook_requirements() implementation in .install that checks for GD FreeType support, needed by the 'Text overlay' effect.
Doing it here. However, I am suggesting to only raise a warning at install/runtime, not an error like in Textimage - IMO it would be too strict to prevent the entire module to get installed. To avoid possible fatals, I am introducing two wrapper methods to imagettftext and imagettfbbox that check for the function existence, and if not, raise an exception that gets logged.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 2701057-4.patch | 6 KB | mondrake |
| #4 | interdiff_2-4.txt | 2.12 KB | mondrake |
| #2 | 2701057-2.patch | 4.7 KB | mondrake |
Comments
Comment #2
mondrakePatch
Comment #3
fietserwinShould we add @param and @return, for better type checking and auto-completion? Same for _imagettfbox().
For the rest it's OK.
Comment #4
mondrakeThanks @fietserwin, done + added @see to PHP docs.
Comment #5
fietserwinGo ahead.
Comment #6
slashrsm commentedCommitted.