<?php
declare(strict_types=1);

$fontBytes = base64_decode(file_get_contents("fixture-font.base64"), true);
file_put_contents("fixture.ttf", $fontBytes);
$font = __DIR__ . "/fixture.ttf";
$box = imagettfbbox(18.0, 0.0, $font, "Чашка");
echo count($box), "\n";
echo max($box[0], $box[2], $box[4], $box[6]) > min($box[0], $box[2], $box[4], $box[6]) ? "positive width\n" : "empty\n";
