l10n->t('Freetype'); } public function getCategory(): string { return 'php'; } /** * Check if the required FreeType functions are present */ protected function hasFreeTypeSupport(): bool { return function_exists('imagettfbbox') && function_exists('imagettftext'); } public function run(): SetupResult { if ($this->hasFreeTypeSupport()) { return SetupResult::success($this->l10n->t('Supported')); } else { return SetupResult::info( $this->l10n->t('Your PHP does not have FreeType support, resulting in breakage of profile pictures and the settings interface.'), ); } } }