arial.ttf,arialbd.ttf,arialbi.ttf,ariali.ttf,ariblk.ttf,ARLRDBD.TTF,comic.ttf,comicbd.ttf,cour.ttf,courbd.ttf,courbi.ttf,couri.ttf,estre.ttf,framd.ttf,FRAMDCN.TTF,framdit.ttf,georgia.ttf,georgiab.ttf,georgiai.ttf,georgiaz.ttf,impact.ttf,Lsans.TTF,Lsansd.TTF,Lsansdi.TTF,Lsansi.TTF,l_10646.ttf,mvboli.ttf,pala.ttf,palab.ttf,palabi.ttf,palai.ttf,sylfaen.ttf,times.ttf,timesbd.ttf,timesbi.ttf,timesi.ttf,trebuc.ttf,trebucbd.ttf,trebucbi.ttf,trebucit.ttf,tunga.ttf,tungab.ttf,verdana.ttf,verdanab.ttf,verdanai.ttf,verdanaz.ttf
#Include <WinAPI.au3> Global Const $QFR_DESCRIPTION = 1 Global $sFont = @WindowsDir & '\Fonts\verdanab.ttf' ; all font in path *.* with a loop Global $tData = DllStructCreate('wchar[260]') ; If Not FileExists ($sFont) then ... DllCall('gdi32.dll', 'int', 'AddFontResource', 'str', $sFont) DllCall('gdi32.dll', 'int', 'GetFontResourceInfoW','wstr', $sFont, 'int*', DllStructGetSize($tData), 'ptr', DllStructGetPtr($tData), 'int', $QFR_DESCRIPTION) DllCall('gdi32.dll', 'int', 'RemoveFontResource', 'str', $sFont) ConsoleWrite(DllStructGetData($tData, 1) & @CR) ; FileCopy($sFont, %TargetDir%\windows\fonts\) ; RunWait(@ComSpec&" /c reg load HKLM\Tmp_Software %InstallSRC%\Windows\system32\config\software", "", @SW_HIDE) ; RegWrite("HKEY_LOCAL_MACHINE\Tmp_Software\Microsoft\Windows NT\CurrentVersion\Fonts", $tData, "REG_SZ", $sFontName) - (TrueType) ? ; RunWait(@ComSpec&" /c reg unload HKLM\Tmp_Software", "", @SW_HIDE)
I do not know what is best !!!
An additional script would add the specific fonts from a folder, if needed by end-user,with a small au3 program to write the registry.
I was wondering what's the minimal set of fonts needed for our PE?
8514fix.fon, 8514oem.fon, 8514sys.fon, app850.fon, cga40woa.fon, cga80woa.fon, ega40woa.fon, ega80woa.fon, lucon.ttf, vga850.fon, vgafix.fon, vgaoem.fon, vgasys.fon (140 Kb)
Is it worth to add an option
"Additional Fonts" […] is a joke