#!/usr/bin/env php getGoogleFontsUrl())) { echo 'Google fonts URL is not defined in App_Doc_Site'; exit(1); } $success = true; $text = new Qs\Console\ColorText(); $debug->setWriteLog(true); foreach ($gf->getFonts() as $browser => $file) { echo $browser . ' => ' . $file; if ($gf->downloadAsBrowser($url, $file, $browser)) { echo ' - ' . $text->paint('downloaded', 'green') . PHP_EOL; } else { echo ' - ' . $text->paint('failed', 'red') . PHP_EOL; } } if (($errors = $debug->getDebugInformation())) { print_r($errors); } echo PHP_EOL;