- Moderator
- #11
There is another opinion:
i used the fonts-plugin to install my constum fonts, because INSTALLTTF made too much problems and work for me.
Set the Outputpath to the System-Fontfolder
System::Call 'shell32:HGetSpecialFolderPathA(i $HWNDPARENT, t .r1, i ${CSIDL_FONTS}, i 0) i r0'
SetOutPath $1
Add the ttf and the Name of the Font to the Registry:
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts" "Play Regular" "Play-Regular.ttf"
Then just use the registerFont Function of the fonts-Plugin:
fonts::registerFont "Play-Regular.ttf"