Fix bug with gd-jis

This commit is contained in:
cytopia
2020-11-06 14:05:54 +01:00
parent f3669b1bed
commit b15ae8fc84
14 changed files with 41 additions and 23 deletions

View File

@@ -0,0 +1,18 @@
<?php
/**
* This page should print 'OK' if everything works,
* 'FAIL' or nothing if an error occured.
*/
ini_set('display_startup_errors', 1);
ini_set('display_errors', 1);
error_reporting(-1);
$dir = realpath(dirname(__FILE__));
$font = $dir . DIRECTORY_SEPARATOR . 'ptsans-regular.ttf';
if ( ($bbox = imagettfbbox(10, 0, $font, 'текст на русском языке не работает')) === FALSE ) {
echo 'FAIL: imagettfbox()';
exit(1);
}
echo 'OK';

Binary file not shown.