akuru-io / fontlet-explorer

⚡️Latest and greatest FLOSS fonts on the desktop.
https://akuru.io
GNU General Public License v3.0
19 stars 4 forks source link

As a Developer I need to fix most critical issues on Windows platform #47

Open pathumego opened 6 years ago

pathumego commented 6 years ago

Lets use this to track windows related issues.

See https://github.com/source-foundry/Hack-windows-installer

heimdallrj commented 5 years ago

@sacsand

heimdallrj commented 5 years ago

I'm putting possible solutions here as separate comments.

  1. https://stackoverflow.com/a/24714441/2311000 This is a c# solution which we can replicate to nodejs. (with admin rights)
    • Copy font files
    • Update registry

https://stackoverflow.com/questions/1037453/programatically-installing-font-in-windows

heimdallrj commented 5 years ago
  1. https://stackoverflow.com/a/21992546/2311000

We can also replicate this. We can bundle our app with FontReg.exe and use that. This is just an idea, I'm note sure will it work or not. But possible.

http://code.kliu.org/misc/fontreg/

See the readme.txt

If you...

...run FontReg.exe without any command-line switches:

  * FontReg will remove any stale font registrations in the registry.
  * FontReg will repair any missing font registrations for fonts located in
    the C:\Windows\Fonts directory (this step will be skipped for .fon fonts if
    FontReg cannot determine which fonts should have "hidden" registrations).

...run FontReg.exe with the /copy or /move switch:

  * FontReg will install all files with a .fon, .ttf, .ttc, or .otf file
    extension located in the CURRENT DIRECTORY (which might not necessarily be
    the directory in which FontReg is located).  Installation will entail
    copying/moving the files to C:\Windows\Fonts and then registering the fonts.
  * FontReg will remove any stale font registrations in the registry.
  * FontReg will repair any missing font registrations for fonts located in
    the C:\Windows\Fonts directory (this step will be skipped for .fon fonts if
    FontReg cannot determine which fonts should have "hidden" registrations).

FontReg.exe is intended as a replacement for Microsoft's outdated fontinst.exe,
and like fontinst.exe, FontReg.exe is fully silent--it will not print messages,
pop up dialogs, etc.; the process exit code will be 0 if there was no error.
heimdallrj commented 5 years ago
  1. https://www.codeproject.com/Questions/303867/Installing-Font-programmatically-using-Csharp-with
heimdallrj commented 5 years ago

@sacsand I think we should go with (2). What do you think?

sacsand commented 5 years ago

yes it is a good option... lets try it