Estou procurando um arquivo responsável pela instalação de fontes no Windows 10.
Leia Como faço para instalar uma fonte no prompt de comando do Windows? ; por exemplo, execute o seguinte trecho de código em um prompt de comando elevado (consulte a resposta do GeneQ ):
… you have to write a Windows shell script to do that. Copying alone won't install the font: you also need to register the font, e.g.
copy /B "FontName.ttf" "%WINDIR%\Fonts" reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts" /v "FontName (TrueType)" /t REG_SZ /d FontName.ttf /f
Então, o que é iniciado durante a instalação de fontes via rightclick? Você pode encontrar a biblioteca fontext.dll
no registro:
==> reg query HKCR /ve /s | findstr /I "InstallFont"
HKEY_CLASSES_ROOT\fonfile\shellex\ContextMenuHandlers\InstallFont
HKEY_CLASSES_ROOT\otffile\shellex\ContextMenuHandlers\InstallFont
HKEY_CLASSES_ROOT\pfmfile\shellex\ContextMenuHandlers\InstallFont
HKEY_CLASSES_ROOT\ttcfile\shellex\ContextMenuHandlers\InstallFont
HKEY_CLASSES_ROOT\ttffile\shellex\ContextMenuHandlers\InstallFont
==> for /F "delims=" %G in ('reg query HKCR /ve /s ^| findstr /I "InstallFont"') do @reg query %G /ve
HKEY_CLASSES_ROOT\fonfile\shellex\ContextMenuHandlers\InstallFont
(Default) REG_SZ {1a184871-359e-4f67-aad9-5b9905d62232}
HKEY_CLASSES_ROOT\otffile\shellex\ContextMenuHandlers\InstallFont
(Default) REG_SZ {1a184871-359e-4f67-aad9-5b9905d62232}
HKEY_CLASSES_ROOT\pfmfile\shellex\ContextMenuHandlers\InstallFont
(Default) REG_SZ {1a184871-359e-4f67-aad9-5b9905d62232}
HKEY_CLASSES_ROOT\ttcfile\shellex\ContextMenuHandlers\InstallFont
(Default) REG_SZ {1a184871-359e-4f67-aad9-5b9905d62232}
HKEY_CLASSES_ROOT\ttffile\shellex\ContextMenuHandlers\InstallFont
(Default) REG_SZ {1a184871-359e-4f67-aad9-5b9905d62232}
==> reg query "HKLM\SOFTWARE\Classes\CLSID\{1a184871-359e-4f67-aad9-5b9905d62232}" /s
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{1a184871-359e-4f67-aad9-5b9905d62232}
(Default) REG_SZ Microsoft Windows Font Context Menu Handler
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{1a184871-359e-4f67-aad9-5b9905d62232}\InProcServer32
(Default) REG_EXPAND_SZ %SystemRoot%\system32\fontext.dll
ThreadingModel REG_SZ Apartment
==> reg query "HKCR\Wow6432Node\CLSID\{1a184871-359e-4f67-aad9-5b9905d62232}" /s
HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{1a184871-359e-4f67-aad9-5b9905d62232}
(Default) REG_SZ Microsoft Windows Font Context Menu Handler
HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{1a184871-359e-4f67-aad9-5b9905d62232}\InProcServer32
(Default) REG_EXPAND_SZ %SystemRoot%\system32\fontext.dll
ThreadingModel REG_SZ Apartment