gdi32: Try to load Wine's TrueType fonts from the build directory.
This commit is contained in:
parent
e5df622ff3
commit
bc2a4dbee0
|
@ -2179,6 +2179,7 @@ BOOL WineEngInit(void)
|
||||||
|
|
||||||
/* load the system truetype fonts */
|
/* load the system truetype fonts */
|
||||||
data_dir = wine_get_data_dir();
|
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/")))) {
|
if (data_dir && (unixname = HeapAlloc(GetProcessHeap(), 0, strlen(data_dir) + sizeof("/fonts/")))) {
|
||||||
strcpy(unixname, data_dir);
|
strcpy(unixname, data_dir);
|
||||||
strcat(unixname, "/fonts/");
|
strcat(unixname, "/fonts/");
|
||||||
|
|
Loading…
Reference in New Issue