gosysfonts
Get system TTF fonts by name in Go. Currently only works for windows.
Installation
go get "github.com/LLKennedy/gosysfonts"
Basic Usage
font, err := gosysfonts.New().GetFont("arial")
Testing
On windows, the simplest way to test is to use the powershell script.
./test.ps1
To emulate the testing which occurs in build pipelines, run the following:
go test . -race -coverprofile=coverage.out;