Try to fix subtitle rendering on Windows by installing a pango.modules.
authorCarl Hetherington <cth@carlh.net>
Sun, 21 Sep 2014 22:48:25 +0000 (23:48 +0100)
committerCarl Hetherington <cth@carlh.net>
Sun, 21 Sep 2014 22:48:25 +0000 (23:48 +0100)
platform/windows/wscript

index 9c3517fe35688a4c8fed9b643c48673d2ccfe034..6d2c59410a8d198c6530990fc9dfdb0407187e0d 100644 (file)
@@ -104,6 +104,7 @@ File "%static_deps%/bin/ssleay32.dll"
 File "%static_deps%/bin/libzip-2.dll"
 File "%static_deps%/bin/libcairomm-1.0-1.dll"
 File "%static_deps%/bin/libpangomm-1.4-1.dll"
+File "%static_deps%/bin/pango-querymodules.exe"
 
 File "%cdist_deps%/bin/asdcp-libdcp-1.0.dll"
 File "%cdist_deps%/bin/kumu-libdcp-1.0.dll"
@@ -123,6 +124,12 @@ File "%cdist_deps%/bin/ffprobe.exe"
 File "%binaries%/src/wx/dcpomatic2-wx.dll"
 File "%binaries%/src/lib/dcpomatic2.dll"
 
+SetOutPath "$INSTDIR\\lib"
+File "%static_deps/lib/pango/1.8.0/modules/pango-arabic-lang.dll"
+File "%static_deps/lib/pango/1.8.0/modules/pango-basic-win32.dll"
+File "%static_deps/lib/pango/1.8.0/modules/pango-indic-lang.dll"
+
+SetOutPath "$INSTDIR\\bin"
 # I don't know why, but sometimes it seems that 
 # delegates.xml must be in with the binaries, and
 # sometimes in the $PROFILE.  Meh.
@@ -165,6 +172,10 @@ WriteRegStr HKLM "Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\DCP-o
 WriteRegStr HKLM "Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\DCP-o-matic2" "UninstallString" "$INSTDIR\\Uninstall.exe"
 WriteUninstaller "$INSTDIR\\Uninstall.exe"
 
+ReadEnvStr $0 COMSPEC
+SetOutPath "$INSTDIR"
+nsExec::ExecToLog '$0 /C bin\pango-querymodules.exe > etc\pango\pango.modules'
+
 SectionEnd
 
 Section "DCP-o-matic" SEC_MASTER