Map "MS Sans Serif" font -> "Microsoft Sans Serif"
Warren_Baird at cimmetry.com
Warren_Baird at cimmetry.com
Wed Feb 5 17:32:09 CST 2003
ChangeLog:
Added a fixed alias mapping "MS Sans Serif" -> "Microsoft Sans Serif".
Description:
Some excel documents expect to be able to load an "MS Sans Serif"
font and were getting "Microsoft Sans Serif" instead.
Warren Baird : Warren_Baird at cimmetry.com
diff -ur clean/wine/dlls/gdi/freetype.c wine/dlls/gdi/freetype.c
--- clean/wine/dlls/gdi/freetype.c 24 Jan 2003 15:12:16 -0000 1.1.1.3
+++ wine/dlls/gdi/freetype.c 28 Jan 2003 18:29:32 -0000
@@ -164,6 +164,8 @@
static WCHAR SystemW[] = {'S','y','s','t','e','m','\0'};
static WCHAR MSSansSerifW[] = {'M','S',' ','S','a','n','s',' ',
'S','e','r','i','f','\0'};
+static WCHAR MicrosoftSansSerifW[] = {'M','i','c','r','o','s','o','f','t','
','S','a','n','s',' ',
+ 'S','e','r','i','f','\0'};
static WCHAR HelvW[] = {'H','e','l','v','\0'};
static WCHAR ArabicW[] = {'A','r','a','b','i','c','\0'};
@@ -1002,6 +1004,10 @@
where we'll either use the charset of the current ansi codepage
or if that's unavailable the first charset that the font supports.
*/
+ if(!strcmpiW(lf.lfFaceName, MSSansSerifW)) {
+ strcpyW(lf.lfFaceName, MicrosoftSansSerifW);
+ }
+
for(family = FontList; family; family = family->next) {
if(!strcmpiW(family->FamilyName, lf.lfFaceName))
if((csi.fs.fsCsb[0] & family->FirstFace->fsCsb[0]) ||
!csi.fs.fsCsb[0])
More information about the wine-patches
mailing list