]> _ Git - fluidbook-toolbox.git/commitdiff
wait #5399
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 26 Jun 2023 16:10:02 +0000 (18:10 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 26 Jun 2023 16:10:02 +0000 (18:10 +0200)
app/Fluidbook/Compiler/Compiler.php

index 3fb738bd43406e16c87913c0cdc04f7cd0fbf520..4a022a2ec05ee5b781f5b70996f7c077bad2efbf 100644 (file)
@@ -1479,14 +1479,12 @@ class Compiler extends Base implements CompilerInterface
     }
 
 
-
     public function getBookSurface()
     {
         return $this->width * $this->height;
     }
 
 
-
     public function addSlideshowLibrary($inline = true)
     {
         $l = ($inline ? $this->config->inlineSlideshowLibrary : $this->config->popupSlideshowLibrary);
@@ -1849,8 +1847,6 @@ class Compiler extends Base implements CompilerInterface
     }
 
 
-
-
     protected function _lessBoolean($val)
     {
         return $this->_themeBoolean($val) ? 'true' : 'false';
@@ -1863,16 +1859,13 @@ class Compiler extends Base implements CompilerInterface
             $f = 'Open Sans';
         }
         switch ($f) {
-            case 'Montserrat':
-            case 'Open Sans':
-                $this->addFontKit($f);
-                return "'" . $f . "', " . $default;
             case 'sans-serif':
                 return $f;
             case 'Arial':
                 return $default;
             default:
-                return "'Open Sans', Arial, Helverica, sans-serif";
+                $this->addFontKit($f);
+                return "'" . $f . "', " . $default;
         }
     }