���Root Mod By V1rus_Alfa
User / IP
:
216.73.217.78
Host / Server
:
195.214.235.115 / npln.ir
System
:
Linux damavand.pws-dns.net 5.14.0-503.35.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Apr 4 05:23:43 EDT 2025 x86_64
Command
|
Upload
|
Mass Deface
|
Create
:
/
home2
/
cutunixc
/
repositories
/
cutunix-shot
/
vendor
/
misterspelik
/
mpdf
/
tests
/
Mpdf
/
Viewing: TTFontFileTest.php
<?php namespace Mpdf; use Mpdf\Fonts\FontCache; class TTFontFileTest extends \Yoast\PHPUnitPolyfills\TestCases\TestCase { /** * @var TTFontFile */ protected $ttf; /** * @throws MpdfException */ public function set_up() { parent::set_up(); $this->ttf = new TTFontFile( new FontCache( new Cache(__DIR__ . '/tmp/mpdf/ttfontdata') ), 'win' ); } /** * Verify fonts can be successfully parsed when useOTL is enabled, without throwing any PHP notices/warnings */ public function testGetMetricWithOtl() { $this->ttf->getMetrics(__DIR__ . '/../data/ttf/Poppins-Regular.ttf', (string) time(), 0, false, false, 0xFF); $this->assertSame('Poppins-Regular', $this->ttf->fullName); $this->ttf->getMetrics(__DIR__ . '/../data/ttf/NotoSans-Regular.ttf', (string) time(), 0, false, false, 0xFF); $this->assertSame('NotoSans-Regular', $this->ttf->fullName); } }
Coded With 💗 by
0x6ick Mod By V1rus_Alfa