Categorygithub.com/grokify/google-fonts
modulepackage
0.1.1
Repository: https://github.com/grokify/google-fonts.git
Documentation: pkg.go.dev

# README

Google Fonts

Build Status Go Report Card Used By Docs License

This package provides a very limited number of Google Fonts, licensed under the Apache 2.0 license, that can be embedded in Go programs.

It is designed to be used with packages that can import TTF fonts as bytes such as github.com/essentialkaos/go-badge.

Currenty, the following font families are supported:

  1. Roboto (on fonts.google.com)

The main.go file in the root folder auto-generates Go files and is only needed for adding additional fonts.

Usage

import "github.com/grokify/google-fonts/roboto"

robotoRegularTTFBytes := roboto.RobotoRegular()

Adding fonts

  1. Download the zip file from fonts.google.com
  2. Unzip into new subfolder
  3. Lower-case the subfolder name
  4. Run go run main.go <new_folder_name>

# Packages

No description provided by the author