You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MarkGlyphSets error when using SIL Schehezade font
Uncaught Mpdf\Exception\FontException: This font scheherazade contains MarkGlyphSets - Not tested yet in .../vendor/mpdf/mpdf/src/TTFontFile.php:2963
Code to reproduce (using either the font Schehezade or Schehezade New, from SIL):
<?php
require_once 'lib/vendor/autoload.php';
// Get existing font data (to which we will append our fonts)
$defaultFontConfig = (new Mpdf\Config\FontVariables())->getDefaults();
$fontData = $defaultFontConfig['fontdata'];
$pdf = new Mpdf\Mpdf([
'mode' => 'utf-8',
'format' => [90,180],
'fontdata' => $fontData + [
'scheherazade' => [
'R' => 'Scheherazade-Regular.ttf',
'B' => 'Scheherazade-Bold.ttf',
'useOTL' => 0xFF,
'useKashida' => 75,
]
],
'default_font' => 'scheherazade'
]);
?>
Other info
"Schehezade" produces the MarkGlyphSets error mentioned above, and "Schehezade New" produces the same error with additional non-fatal notices:
Notice: Undefined offset: in /mpdf/mpdf/src/TTFontFile.php on line 3190.
This does not seem to be as a bug, given the error, fonts with MarkGlyphSets are just not supported. Changed the exception message to be more descriptive.
MarkGlyphSets error when using SIL Schehezade font
Code to reproduce (using either the font Schehezade or Schehezade New, from SIL):
Other info
"Schehezade" produces the MarkGlyphSets error mentioned above, and "Schehezade New" produces the same error with additional non-fatal notices:
Attaching fonts: (also available from SIL)
Scheherazade-2.100.zip
ScheherazadeNew-3.100.zip
The text was updated successfully, but these errors were encountered: