diff options
author | Robin Appelman <robin@icewind.nl> | 2020-01-27 15:27:27 +0300 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2020-01-27 15:27:27 +0300 |
commit | 740bd62a2500dda1a69a849532025607ef8dbf2e (patch) | |
tree | 7c4be91ef85839d79571e0f0655d48807e17c163 /lib | |
parent | 95e0af67a1ae27e5482f86c1d8af0ae085d0fcf8 (diff) |
make allfontsgen executable if it isnt
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Document/FontManager.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Document/FontManager.php b/lib/Document/FontManager.php index 2fce6b5..077b573 100644 --- a/lib/Document/FontManager.php +++ b/lib/Document/FontManager.php @@ -40,6 +40,10 @@ class FontManager { } public function rebuildFonts() { + if (!is_executable(ConverterBinary::BINARY_DIRECTORY . '/../../tools/allfontsgen')) { + @chmod(ConverterBinary::BINARY_DIRECTORY . '/../../tools/allfontsgen', 0755); + } + $this->localAppData->getReadLocalPath($this->getFontDir(), function (string $fontsDir) { $cmd = '../../tools/allfontsgen \ --input="../../../core-fonts" \ |