| 1 |
@ECHO OFF |
| 2 |
set "FF=%~dp0" |
| 3 |
set FF_XPORT=11 |
| 4 |
set DISPLAY=127.0.0.1:%FF_XPORT%.0 |
| 5 |
set "XLOCALEDIR=%FF%bin\VcXsrv\locale" |
| 6 |
set "XLOCALELIBDIR=%XLOCALEDIR%" |
| 7 |
set AUTOTRACE=potrace |
| 8 |
set "HOME=%FF%" |
| 9 |
set FF_PORTABLE=TRUE |
| 10 |
|
| 11 |
::Set this item to enable experimental Unicode filename support |
| 12 |
::set LC_ALL=C.UTF-8 |
| 13 |
|
| 14 |
::Set this to your language code to change the FontForge UI language |
| 15 |
::See share/locale/ for a list of supported language codes |
| 16 |
::set LANGUAGE=en |
| 17 |
|
| 18 |
::Only add to path once |
| 19 |
if not defined FF_PATH_ADDED ( |
| 20 |
set "PATH=%FF%;%FF%\bin;%PATH:"=%" |
| 21 |
set FF_PATH_ADDED=TRUE |
| 22 |
) |
| 23 |
|
| 24 |
echo Running FontForge in debug mode, expect it to be slower! |
| 25 |
|
| 26 |
"%FF%\bin\VcXsrv_util.exe" -exists || ( |
| 27 |
start /B "" "%FF%\bin\VcXsrv\vcxsrv.exe" :%FF_XPORT% -multiwindow -clipboard -silent-dup-error |
| 28 |
) |
| 29 |
|
| 30 |
"%FF%\bin\VcXsrv_util.exe" -wait |
| 31 |
|
| 32 |
"%FF%\bin\gdb.exe" --batch --command="%FF%\ffdebugscript.txt" --args "%FF%\bin\fontforge.exe" -nosplash %* 2>&1 | wtee "%TEMP%\FontForge-Debug-Output.txt" |
| 33 |
explorer "%TEMP%\FontForge-Debug-Output.txt" |
| 34 |
|
| 35 |
"%FF%\bin\VcXsrv_util.exe" -close |
| 36 |
:: bye |
| 37 |
|