From: Vincent Vanwaelscappel Date: Thu, 31 Aug 2023 12:30:36 +0000 (+0200) Subject: wait #6232 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=4b4813d11f5076676d8854efadf1693e08a25510;p=fluidbook-toolbox.git wait #6232 @0.5 --- diff --git a/app/Fluidbook/Compiler/Compiler.php b/app/Fluidbook/Compiler/Compiler.php index 46babf640..f57b88251 100644 --- a/app/Fluidbook/Compiler/Compiler.php +++ b/app/Fluidbook/Compiler/Compiler.php @@ -2315,7 +2315,7 @@ class Compiler extends Base implements CompilerInterface } } $capHeight = 1; - if (isset($fontCapHeight) && isset($fontHeight)) { + if (isset($fontCapHeight) && isset($fontHeight) && is_numeric($fontCapHeight) && is_numeric($fontHeight)) { $capHeight = $fontCapHeight / $fontHeight; } $font = ['family' => $hash, 'capHeight' => $capHeight, 'ascender' => $ascender / $fontHeight, 'descender' => $descender / $fontHeight];