From b1aa0c4c0ca3848780bdb33bde02fb869495b77a Mon Sep 17 00:00:00 2001 From: konstantin-s Date: Thu, 28 Jan 2021 17:21:46 +0500 Subject: [PATCH] Added support mbstring.func_overload=2 Probably resolves issue https://github.com/dompdf/dompdf/issues/2298 --- src/FontLib/Glyph/Outline.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FontLib/Glyph/Outline.php b/src/FontLib/Glyph/Outline.php index 330db09..f2b15d3 100644 --- a/src/FontLib/Glyph/Outline.php +++ b/src/FontLib/Glyph/Outline.php @@ -96,7 +96,7 @@ function parseData() { function encode() { $font = $this->getFont(); - return $font->write($this->raw, strlen($this->raw)); + return $font->write($this->raw, mb_strlen($this->raw, '8bit')); } function getSVGContours() {