]> _ Git - cubeextranet.git/commitdiff
(no commit message)
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Thu, 12 Sep 2013 19:02:29 +0000 (19:02 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Thu, 12 Sep 2013 19:02:29 +0000 (19:02 +0000)
inc/ws/Controlleur/class.ws.url.php
inc/ws/DAO/class.ws.dao.book.php

index c48b754fef0a44b36b6f2d160ae69ddd0aa8f329..ea96ed2f1568f7d9a616a3b386b9cc9cdafe5047 100644 (file)
@@ -733,7 +733,7 @@ class wsUrl {
                $formats = array('ttf', 'otf', 'TTF', 'OTF');\r
 \r
                $dr = opendir(FONT_PATH);\r
-               $fonts = array();\r
+               $fonts = array('Arial (police système)' => "system");\r
                while ($file = readdir($dr)) {\r
                        if ($file == '.' || $file == '..' || !in_array(files::getExtension($file), $formats)) {\r
                                continue;\r
index 9c4b3796bdc8dad4794ee45dc9576af12e3915ad..32ff719e385e257c7ba184b6462c14b4939860bd 100644 (file)
@@ -1338,8 +1338,10 @@ class wsDAOBook extends commonDAO {
                }\r
                // Fonts\r
                if ($theme->parametres->fontKit == 'auto') {\r
-                       $flex->addFont(FONT_PATH . '/' . $lang->font, 'BoldFont', $lang->charset);\r
-                       $flex->addFont(FONT_PATH . '/' . $lang->font, 'GeneralFont', $lang->charset);\r
+                       if ($lang->font != 'system') {\r
+                               $flex->addFont(FONT_PATH . '/' . $lang->font, 'BoldFont', $lang->charset);\r
+                               $flex->addFont(FONT_PATH . '/' . $lang->font, 'GeneralFont', $lang->charset);\r
+                       }\r
                        $flex->addFont(FONT_PATH . '/FluidbookCredits.ttf', 'CreditsFont', 'ASCII');\r
                        $flexLight->addFont(FONT_PATH . '/FluidbookLoader.ttf', 'LoaderFont', 'Numerals');\r
                } else if ($theme->parametres->fontKit == 'vagrounded') {\r