From 7618473a443aaa42d06391a134525d51a6912f39 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Wed, 13 Dec 2017 12:36:48 +0100 Subject: Add warning regarding freetype support Signed-off-by: Roeland Jago Douma --- settings/Controller/CheckSetupController.php | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'settings/Controller/CheckSetupController.php') diff --git a/settings/Controller/CheckSetupController.php b/settings/Controller/CheckSetupController.php index 5b7953bf392..06b9e80294b 100644 --- a/settings/Controller/CheckSetupController.php +++ b/settings/Controller/CheckSetupController.php @@ -409,6 +409,14 @@ Raw output return $isOpcacheProperlySetUp; } + /** + * Check if the required FreeType functions are present + * @return bool + */ + protected function hasFreeTypeSupport() { + return function_exists('imagettfbbox') && function_exists('imagettftext'); + } + /** * @return DataResponse */ @@ -430,6 +438,7 @@ Raw output 'isOpcacheProperlySetup' => $this->isOpcacheProperlySetup(), 'phpOpcacheDocumentation' => $this->urlGenerator->linkToDocs('admin-php-opcache'), 'isSettimelimitAvailable' => $this->isSettimelimitAvailable(), + 'hasFreeTypeSupport' => $this->hasFreeTypeSupport(), ] ); } -- cgit v1.2.3