From 4b4813d11f5076676d8854efadf1693e08a25510 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Thu, 31 Aug 2023 14:30:36 +0200 Subject: [PATCH] wait #6232 @0.5 --- app/Fluidbook/Compiler/Compiler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]; -- 2.39.5