FontRegister 2.0.0

dotnet add package FontRegister --version 2.0.0                
NuGet\Install-Package FontRegister -Version 2.0.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="FontRegister" Version="2.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add FontRegister --version 2.0.0                
#r "nuget: FontRegister, 2.0.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install FontRegister as a Cake Addin
#addin nuget:?package=FontRegister&version=2.0.0

// Install FontRegister as a Cake Tool
#tool nuget:?package=FontRegister&version=2.0.0                

<img src="https://i.imgur.com/Q4WoRjy.png" width="25" style="margin: 5px 0px 0px 10px"/> FontRegister

Nuget downloads NuGet GitHub license

FontRegister is both a command-line tool and a csharp native library (pure code) for installing and uninstalling fonts on Windows.

Supported Font Types

  • ttf
  • otf
  • fon
  • ttc

Usage

# Will print help
fontregister

# Register fonts in the following folders or specific files:
# Note: Folders are deep-searched recursively.
fontregister install "c:/folder" "c:/font.ttf" "./relativedir/" "./relativedir/font.otf"

Help

Here's the output of the help command:

Usage: FontManager <command> [paths...]
Commands:
  install <path1> [path2] [path3] ... : Install fonts from specified files or directories
  uninstall <fontName1> [fontName2] [fontName3] ... : Uninstall specified fonts

FontRegister Library Code Example

PM> Install-Package FontRegister
//single file
var notifier = new WindowsFontInstaller(new WindowsSystemNotifier());
notifier.InstallFont("C:/myfonts/myfont.ttf");

//in bulk
var fontManager = new FontManager(notifier);
fontManager.InstallFonts(new string[] { "C:/myfonts", "C:/myfonts2/myfont.ttf" });

Contributing

Contributions are welcome! Please open an issue or submit a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Acknowledgements

  • FontReg for the underlying functionality.
  • All contributors and users for their support.
Product Compatible and additional computed target framework versions.
.NET net6.0-windows7.0 is compatible.  net7.0-windows was computed.  net8.0-windows was computed. 
.NET Framework net48 is compatible.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.0.0 98 7/22/2024