[pkg-wine-party] Bug#814844: wine: fonts-wine fonts are not found.
Jens Reyer
jre.winesim at gmail.com
Wed Mar 16 18:10:44 UTC 2016
control: forwarded -1 https://bugs.winehq.org/show_bug.cgi?id=40312
Forwarded, the upstream report got some feedback by AJ to keep in
mind.
I pushed a patch (see below) to the git master branch
(wine-development) to at least workaround the problem. However I'm
not sure if this catches every issue. Further my solution is quite
crude, generally it would be much better to actually use fontdir
instead of datadir. If someone can make a better patch that would be
very welcome.
And finally, in the stretch branch we currently have:
-fontdir = ${datadir}/wine/fonts
+fontdir = ${datadir}/wine
^^^^
Typo? Imo, that should be either ${datadir}/fonts, or as in master
/usr/share/wine/fonts (for stable wine both are the same). Of
course currently this doesn't seem to matter because fontdir is
ignored.
commit b4e5b140010b0825a1b7f658e9bc2be56caba60a
Author: Jens Reyer <jre.winesim at gmail.com>
Date: Tue Mar 15 19:58:49 2016 +0100
Add freetype.patch to fix font search path.
Closes in wine stable: #814844
For fontdir=/usr/share/wine/fonts and
datadir=/usr/share/wine-development.
Upstream uses fontdir=${datadir}/wine/fonts.
=======================================
--- a/dlls/gdi32/freetype.c
+++ b/dlls/gdi32/freetype.c
@@ -2980,9 +2980,9 @@ static char *get_data_dir_path( LPCWSTR
{
INT len = WideCharToMultiByte(CP_UNIXCP, 0, file, -1, NULL, 0, NULL, NULL);
- unix_name = HeapAlloc(GetProcessHeap(), 0, strlen(data_dir) + len + sizeof("/fonts/"));
+ unix_name = HeapAlloc(GetProcessHeap(), 0, strlen(data_dir) + len + sizeof("/../../wine/fonts/"));
strcpy(unix_name, data_dir);
- strcat(unix_name, "/fonts/");
+ strcat(unix_name, "/../../wine/fonts/");
WideCharToMultiByte(CP_UNIXCP, 0, file, -1, unix_name + strlen(unix_name), len, NULL, NULL);
}
More information about the pkg-wine-party
mailing list