fonts

package
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 25, 2020 License: MIT Imports: 4 Imported by: 1

Documentation

Overview

Package fonts contains the embedded fonts and utility functions.

Code generated by rice embed-go; DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LatoHeavy

func LatoHeavy() ([]byte, error)

LatoHeavy returns the heavy style of the Lato font.

func LatoItalic

func LatoItalic() ([]byte, error)

LatoItalic returns the italic style of the Lato font.

func LatoRegular

func LatoRegular() ([]byte, error)

LatoRegular returns the regular style of the Lato font.

func LiberationSansBold

func LiberationSansBold() ([]byte, error)

LiberationSansBold returns the bold style of the Liberation Sans font.

func LiberationSansItalic

func LiberationSansItalic() ([]byte, error)

LiberationSansItalic returns the italic style of the Liberation Sans font.

func LiberationSansRegular

func LiberationSansRegular() ([]byte, error)

LiberationSansRegular returns the normal style of the Liberation Sans font.

Types

type FontFamily

type FontFamily struct {
	Name   string
	Bold   []byte
	Italic []byte
	Normal []byte
}

FontFamily encapsulates a font family for easy adding to the document

func NewLatoFamily

func NewLatoFamily() (*FontFamily, error)

NewLatoFamily returns a new FontFamily of the Lato font.

func NewLiberationSansFamily

func NewLiberationSansFamily() (*FontFamily, error)

NewLiberationSansFamily returns a new FontFamily of the Liberation Sans font.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL