From: William Desportes <williamdes@wdes.fr>
Date: Sun, 29 Jan 2023 15:10:16 +0100
Subject: Update tests to use NotoSansShavian from Debian

Origin: vendor
Forwarded: not-needed
---
 tests/FontLib/FontTest.php | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/tests/FontLib/FontTest.php b/tests/FontLib/FontTest.php
index 568c200..dcf4f0d 100644
--- a/tests/FontLib/FontTest.php
+++ b/tests/FontLib/FontTest.php
@@ -24,7 +24,7 @@ class FontTest extends TestCase
 
     public function testLoadTTFFont()
     {
-        $trueTypeFont = Font::load('tests/resources/fonts/ahem/ahem.ttf');
+        $trueTypeFont = Font::load('/usr/share/fonts/truetype/noto/NotoSansShavian-Regular.ttf');
 
         $this->assertInstanceOf('FontLib\TrueType\File', $trueTypeFont);
     }
@@ -45,7 +45,7 @@ class FontTest extends TestCase
 
     public function testTTFCmap()
     {
-        $trueTypeFont = Font::load('tests/resources/fonts/noto/NotoSansShavian-Regular.ttf');
+        $trueTypeFont = Font::load('/usr/share/fonts/truetype/noto/NotoSansShavian-Regular.ttf');
 
         $trueTypeFont->parse();
 
@@ -54,16 +54,16 @@ class FontTest extends TestCase
         $cmapFormat4Table = $cmapTable[0];
 
         $this->assertEquals(4, $cmapFormat4Table['format']);
-        $this->assertEquals(51, $cmapFormat4Table['segCount']);
+        $this->assertEquals(5, $cmapFormat4Table['segCount']);
         $this->assertEquals($cmapFormat4Table['segCount'], count($cmapFormat4Table['startCode']));
         $this->assertEquals($cmapFormat4Table['segCount'], count($cmapFormat4Table['endCode']));
 
         $cmapFormat12Table = $cmapTable[1];
 
         $this->assertEquals(12, $cmapFormat12Table['format']);
-        $this->assertEquals(294, $cmapFormat12Table['ngroups']);
-        $this->assertEquals(294, count($cmapFormat12Table['startCode']));
-        $this->assertEquals(294, count($cmapFormat12Table['endCode']));
-        $this->assertEquals(383, count($cmapFormat12Table['glyphIndexArray']));
+        $this->assertEquals(5, $cmapFormat12Table['ngroups']);
+        $this->assertEquals(5, count($cmapFormat12Table['startCode']));
+        $this->assertEquals(5, count($cmapFormat12Table['endCode']));
+        $this->assertEquals(52, count($cmapFormat12Table['glyphIndexArray']));
     }
 }
