[Libreoffice-commits] core.git: solenv/bin
Mike Kaganski
mike.kaganski at collabora.com
Tue Mar 27 04:07:33 UTC 2018
solenv/bin/modules/installer/windows/file.pm | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 5cca6f0e61d7ebc8d87d73f4dc0f821adcde3c64
Author: Mike Kaganski <mike.kaganski at collabora.com>
Date: Mon Mar 26 12:05:02 2018 +0100
Require and import Font::TTF::Font instead of use
... to avoid the dependency in non-windows builds
Change-Id: I37a95cf49b01a24833bcc01166d5c2c855ce1b49
Reviewed-on: https://gerrit.libreoffice.org/51870
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice at googlemail.com>
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Mike Kaganski <mike.kaganski at collabora.com>
diff --git a/solenv/bin/modules/installer/windows/file.pm b/solenv/bin/modules/installer/windows/file.pm
index 72f32949bd47..acd9792b8213 100644
--- a/solenv/bin/modules/installer/windows/file.pm
+++ b/solenv/bin/modules/installer/windows/file.pm
@@ -30,7 +30,6 @@ use installer::windows::idtglobal;
use installer::windows::msiglobal;
use installer::windows::language;
use installer::windows::component;
-use Font::TTF::Font;
##########################################################################
# Assigning one cabinet file to each file. This is requrired,
@@ -555,6 +554,8 @@ sub get_fileversion
# file version for font files (tdf#76239)
if ( $onefile->{'Name'} =~ /\.(otf|ttf|ttc)$/i )
{
+ require Font::TTF::Font;
+ Font::TTF::Font->import;
my $fnt = Font::TTF::Font->open("<$onefile->{'sourcepath'}");
# 5 is pre-defined name ID for version string - see
# https://docs.microsoft.com/en-us/typography/opentype/spec/name
More information about the Libreoffice-commits
mailing list