From: vincent@cubedesigners.com Date: Thu, 13 Oct 2011 09:06:45 +0000 (+0000) Subject: (no commit message) X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=2effda09cd0759a44c4b8f65114cabd36537baf5;p=cubeextranet.git --- diff --git a/inc/ws/Util/html5/class.ws.html5.compiler.php b/inc/ws/Util/html5/class.ws.html5.compiler.php index 2237c8e29..0f9e0778a 100644 --- a/inc/ws/Util/html5/class.ws.html5.compiler.php +++ b/inc/ws/Util/html5/class.ws.html5.compiler.php @@ -377,7 +377,11 @@ class wsHTML5Compiler { $fontforge = new cubeCommandLine('convert.pe'); $fontforge->setPath(CONVERTER_PATH); foreach ($this->fontDocs[$font] as $document_id => $dummy) { - $fontforge->setArg(null, WS_DOCS . '/' . $document_id . '/fonts/web/' . $font . '.ttf'); + if (file_exists(WS_DOCS . '/' . $document_id . '/fonts/web/' . $font . '.otf')) { + $fontforge->setArg(null, WS_DOCS . '/' . $document_id . '/fonts/web/' . $font . '.otf'); + } else { + $fontforge->setArg(null, WS_DOCS . '/' . $document_id . '/fonts/web/' . $font . '.ttf'); + } } $fontforge->setArg(null, '-'); $fontforge->setArg(null, $this->vdir . '/data/style/F' . $index . '.' . $format);