[PATCH 1/4] wine.inf: Add fonts section for copying builtin fonts to %WINDIR%\fonts.

Jactry Zeng jzeng at codeweavers.com
Mon Nov 11 02:44:02 CST 2019


This patchset is trying to setup Wine builtin fonts in %WINDIR%\fonts and load these fonts from there first. This is mostly for a game named Achron. It assumes arial.ttf and tahoma.ttf are system fonts. So it got their file names by reading key values from "HKLM\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Fonts\\", and appending the file name to "C:\\Windows\\Fonts\\" for getting a full path.

Signed-off-by: Jactry Zeng <jzeng at codeweavers.com>
---
 loader/wine.inf.in | 66 +++++++++++++++++++++++++++++++++++++++++++---
 1 file changed, 62 insertions(+), 4 deletions(-)

diff --git a/loader/wine.inf.in b/loader/wine.inf.in
index c0f6e0a391..0b431a7447 100644
--- a/loader/wine.inf.in
+++ b/loader/wine.inf.in
@@ -30,7 +30,7 @@ signature="$CHICAGO$"
 RegisterDlls=RegisterDllsSection
 WineFakeDlls=FakeDllsWin32,FakeDlls
 UpdateInis=SystemIni
-CopyFiles=l_intl_section, inf_section
+CopyFiles=l_intl_section, inf_section, fonts_section
 AddReg=\
     Classes,\
     ContentIndex,\
@@ -54,7 +54,7 @@ AddReg=\
 RegisterDlls=RegisterDllsSection
 WineFakeDlls=FakeDllsWin32,FakeDlls
 UpdateInis=SystemIni
-CopyFiles=l_intl_section, inf_section
+CopyFiles=l_intl_section, inf_section, fonts_section
 AddReg=\
     Classes,\
     ContentIndex,\
@@ -80,7 +80,7 @@ RegisterDlls=RegisterDllsSection
 WineFakeDlls=FakeDllsWin64,FakeDlls
 WinePreInstall=Wow64
 UpdateInis=SystemIni
-CopyFiles=l_intl_section, inf_section
+CopyFiles=l_intl_section, inf_section, fonts_section
 AddReg=\
     Classes,\
     ContentIndex,\
@@ -107,7 +107,7 @@ RegisterDlls=RegisterDllsSection
 WineFakeDlls=FakeDllsWin64,FakeDlls
 WinePreInstall=Wow64
 UpdateInis=SystemIni
-CopyFiles=l_intl_section, inf_section
+CopyFiles=l_intl_section, inf_section, fonts_section
 AddReg=\
     Classes,\
     ContentIndex,\
@@ -3853,6 +3853,7 @@ HKLM,Software\Wine\LicenseInformation,"Shell-PremiumInBoxGames-Chess-EnableGame"
 [DestinationDirs]
 l_intl_section = 11
 inf_section = 17
+fonts_section = 20
 
 [l_intl_section]
 l_intl.nls
@@ -3860,3 +3861,60 @@ l_intl.nls
 [inf_section]
 winebus.inf
 winehid.inf
+
+[fonts_section]
+coue1255.fon,fonts\coue1255.fon
+coue1256.fon,fonts\coue1256.fon
+coue1257.fon,fonts\coue1257.fon
+couree.fon,fonts\couree.fon
+coure.fon,fonts\coure.fon
+coureg.fon,fonts\coureg.fon
+courer.fon,fonts\courer.fon
+couret.fon,fonts\couret.fon
+cvgasys.fon,fonts\cvgasys.fon
+hvgasys.fon,fonts\hvgasys.fon
+jsmalle.fon,fonts\jsmalle.fon
+jvgafix.fon,fonts\jvgafix.fon
+jvgasys.fon,fonts\jvgasys.fon
+marlett.ttf,fonts\marlett.ttf
+smae1255.fon,fonts\smae1255.fon
+smae1256.fon,fonts\smae1256.fon
+smae1257.fon,fonts\smae1257.fon
+smallee.fon,fonts\smallee.fon
+smalle.fon,fonts\smalle.fon
+smalleg.fon,fonts\smalleg.fon
+smaller.fon,fonts\smaller.fon
+smallet.fon,fonts\smallet.fon
+ssee1255.fon,fonts\ssee1255.fon
+ssee1256.fon,fonts\ssee1256.fon
+ssee1257.fon,fonts\ssee1257.fon
+ssee874.fon,fonts\ssee874.fon
+ssef1255.fon,fonts\ssef1255.fon
+ssef1256.fon,fonts\ssef1256.fon
+ssef1257.fon,fonts\ssef1257.fon
+ssef874.fon,fonts\ssef874.fon
+sserifee.fon,fonts\sserifee.fon
+sserife.fon,fonts\sserife.fon
+sserifeg.fon,fonts\sserifeg.fon
+sserifer.fon,fonts\sserifer.fon
+sserifet.fon,fonts\sserifet.fon
+sseriffe.fon,fonts\sseriffe.fon
+sseriff.fon,fonts\sseriff.fon
+sseriffg.fon,fonts\sseriffg.fon
+sseriffr.fon,fonts\sseriffr.fon
+sserifft.fon,fonts\sserifft.fon
+svgasys.fon,fonts\svgasys.fon
+symbol.ttf,fonts\symbol.ttf
+tahomabd.ttf,fonts\tahomabd.ttf
+tahoma.ttf,fonts\tahoma.ttf
+vgafix.fon,fonts\vgafix.fon
+vgas1255.fon,fonts\vgas1255.fon
+vgas1256.fon,fonts\vgas1256.fon
+vgas1257.fon,fonts\vgas1257.fon
+vgas874.fon,fonts\vgas874.fon
+vgasyse.fon,fonts\vgasyse.fon
+vgasys.fon,fonts\vgasys.fon
+vgasysg.fon,fonts\vgasysg.fon
+vgasysr.fon,fonts\vgasysr.fon
+vgasyst.fon,fonts\vgasyst.fon
+wingding.ttf,fonts\wingding.ttf
-- 
2.24.0





More information about the wine-devel mailing list