]> _ Git - fluidbook-toolbox.git/commitdiff
wip #6178 @0:10
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 27 Jul 2023 08:00:11 +0000 (10:00 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 27 Jul 2023 08:00:11 +0000 (10:00 +0200)
app/Fluidbook/Compiler/Compiler.php

index b014b8375fbaa305ca913bbf4419ce9beec4084b..0b583ef6228d08be4a5fe4fe863eb0eeef7b973d 100644 (file)
@@ -1847,6 +1847,9 @@ class Compiler extends Base implements CompilerInterface
 
     protected function _font($f)
     {
+        if(!$f){
+            $f='OpenSans';
+        }
         $font = FluidbookFont::getAvailableFonts()[$f];
         if ($font['font_kit']) {
             $this->addFontKit($font['font_kit']);