gdi32: Try to load Wine's TrueType fonts from the build directory.

This commit is contained in:
Huw Davies 2007-10-12 14:36:44 +01:00 committed by Alexandre Julliard
parent e5df622ff3
commit bc2a4dbee0
1 changed files with 1 additions and 0 deletions

View File

@ -2179,6 +2179,7 @@ BOOL WineEngInit(void)
/* load the system truetype fonts */
data_dir = wine_get_data_dir();
if (!data_dir) data_dir = wine_get_build_dir();
if (data_dir && (unixname = HeapAlloc(GetProcessHeap(), 0, strlen(data_dir) + sizeof("/fonts/")))) {
strcpy(unixname, data_dir);
strcat(unixname, "/fonts/");