src/Leevel/Seccode/Seccode.php
protected function getTtf(): array
    {
        $fontPath = $this->isChinese($this->getCode()) ?
            $this->option['chinese_font_path'] :
            $this->option['font_path'];

        if (!is_dir($fontPath)) {
            $e = sprintf('Font path %s is not exits.', $fontPath);

            throw new InvalidArgumentException($e);
        }

        $ttf = glob($fontPath.'/*.*');

        if (empty($ttf)) {
            throw new InvalidArgumentException('Font files not found.');
        }

        return $ttf;
    }
protected function getTtf(): array
    {
        $fontPath = $this->isChinese($this->getCode()) ?
            $this->option['chinese_font_path'] :
            $this->option['font_path'];

        if (!is_dir($fontPath)) {
            $e = sprintf('Font path %s is not exits.', $fontPath);

            throw new InvalidArgumentException($e);
        }

        $ttf = glob($fontPath.'/*.*');

        if (empty($ttf)) {
            throw new InvalidArgumentException('Font files not found.');
        }

        return $ttf;
    }
返回验证字体.

@return array