Skip to content

LLKennedy/gosysfonts

Repository files navigation

gosysfonts

GoDoc Build Status Coverage Status Go Report Card

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;

About

Get system TTF fonts by name in Go.

Resources

License

Stars

Watchers

Forks

Packages

No packages published