title: How to install fonts?
body: <p>If I just use <strong>File</strong> to install fonts, installation goes fine, but the fonts are useless: no characters show up when you try to write with them, and if you doubleclick them in a fonts folder, their preview would be blank.</p>
  
  <p>So far I tried to follow <a href="http://nsis.sourceforge.net/Register_Fonts" rel="nofollow">this guide</a>, with this snippet of code:</p>
  
  <pre><code>FindFirst $5 $6 "..\3rdparty\fonts\*.ttf"
  loop:
      StrCmp $6 "" done
      !insertmacro InstallTTFFont $6
      FindNext $5 $6
      Goto loop
  done:
  FindClose $5
  </code></pre>
  
  <p>However, I get this error:</p>
  
  <blockquote>
    <p>!insertmacro: InstallTTFFont Push: $0
    Push: $R0 Push: $R1 Push: $R2 !define:
    "Index"="Line66.6" !insertmacro:
    GetFileNameCall Push: $6 Call
    "GetFileName" Pop: $0 !insertmacro:
    end of GetFileNameCall !define:
    "FontFileName"="$0" SetOutPath:
    "$FONT_DIR" IfFileExists:
    "$FONT_DIR\$0" ? Line66.6 :  File:
    "$6" -> no files found. Usage: File
    [/nonfatal] [/a] ([/r] [/x filespec
    [...]] filespec [...] |<br>
    /oname=outfile one_file_only) Error in
    macro InstallTTFFont on macroline 14
    Error in script
    "C:\ScanModule\Install\ScanModule.nsi"
    on line 66 -- aborting creation
    process</p>
  </blockquote>
  
  <p><strong>Edit:</strong> If I just manually write out all of the individual fonts, it works. So problem solved. Sorta. Not that I'm complaining, but that's not cool.</p>