{I+=codeWee;}
[NSIS] How to install OTF Font using NSIS by FontName plugin

1) Install FontName plugin : https://nsis.sourceforge.io/FontName_plug-in
2) Move Plugins\FontName.dll to Plugins\x86-ansi\FontName.dll (because of 'plugin not found' error)
3) Edit include\FontName.nsh file. --> Remove "StrCmp $LANGUAGE 1063 0 End-1063 ~~~~  End-1071:" (because of 'bad encoding' error)
4) script like following: 

!include "FontReg.nsh"
!include "FontName.nsh"
!include "WinMessages.nsh"

;.......

Section "Fonts"

  StrCpy $FONT_DIR $FONTS
 
  !insertmacro InstallFONFont 'Noto_Sans_KR\NotoSansKR-Black.otf' 'NotoSansKR-Black.otf'
  !insertmacro InstallFONFont 'Noto_Sans_KR\NotoSansKR-Bold.otf' 'NotoSansKR-Bold.otf'
  !insertmacro InstallFONFont 'Noto_Sans_KR\NotoSansKR-Light.otf' 'NotoSansKR-Light.otf'
  !insertmacro InstallFONFont 'Noto_Sans_KR\NotoSansKR-Medium.otf' 'NotoSansKR-Medium.otf'
  !insertmacro InstallFONFont 'Noto_Sans_KR\NotoSansKR-Regular.otf' 'NotoSansKR-Regular.otf'
  !insertmacro InstallFONFont 'Noto_Sans_KR\NotoSansKR-Thin.otf' 'NotoSansKR-Thin.otf'

 
  SendMessage ${HWND_BROADCAST} ${WM_FONTCHANGE} 0 0 /TIMEOUT=5000
SectionEnd
HTML | PHP | C++ | DirectX11 | Javascript | C# | HTML5 | ASP | SQL | General | CSS | Oculus Rift | Unity3d | Virtools SDK | Tip | NSIS | PowerShell | node.js | Web API | RTSP | All
Copyright© 2016 CodeWee.com All rights reserved.