gofont

package
v0.4.5 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

All is a slice containing all available fonts in the Go font family.

View Source
var ErrInvalidFontID = errors.New("invalid font ID")

ErrInvalidFontID indicates that a FontID is invalid.

Functions

This section is empty.

Types

type Font added in v0.4.0

type Font int

Font identifies individual fonts in the Go font family.

const (
	GoBold            Font // gobold
	GoBoldItalic           // gobolditalic
	GoItalic               // goitalic
	GoMedium               // gomedium
	GoMediumItalic         // gomediumitalic
	GoRegular              // goregular
	GoSmallcaps            // gosmallcaps
	GoSmallcapsItalic      // gosmallcapsitalic
	GoMono                 // gomono
	GoMonoBold             // gomonobold
	GoMonoBoldItalic       // gomonobolditalic
	GoMonoItalic           // gomonoitalic
)

Constants for the available fonts in the Go font family.

func (Font) Embed added in v0.4.0

func (f Font) Embed(w pdf.Putter, opt *font.Options) (font.Layouter, error)

Jump to

Keyboard shortcuts

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