diff --git a/Visual Studio Projects/BESM6.vcproj b/Visual Studio Projects/BESM6.vcproj
index 99ff13d2..5f2349ab 100644
--- a/Visual Studio Projects/BESM6.vcproj
+++ b/Visual Studio Projects/BESM6.vcproj
@@ -26,8 +26,8 @@
>
%_X_FontIncludeName%.temp
+set FONTFILE=%windir%\Fonts\%_X_FontName%
+if not exist "%FONTFILE%" echo Can't find font %_X_FontName%
+if not exist "%FONTFILE%" goto _done_findfont
+set FONTFILE=%FONTFILE:\=/%
+echo #define FONTFILE %FONTFILE% >>%_X_FontIncludeName%.temp
+if not exist %_X_FontIncludeName% goto _found_font
+fc %_X_FontIncludeName%.temp %_X_FontIncludeName% >NUL
+if NOT ERRORLEVEL 1 goto _done_findfont
+:_found_font
+echo Found: %FONTFILE%
+move /Y %_X_FontIncludeName%.temp %_X_FontIncludeName% >NUL
+:_done_findfont
+if exist %_X_FontIncludeName%.temp del %_X_FontIncludeName%.temp
goto _done_build
:_notice1
echo *****************************************************