fonts

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: MIT Imports: 3 Imported by: 0

README

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//go:embed SF-Mono-Regular.otf
	Regular []byte
	//go:embed SF-Mono-RegularItalic.otf
	RegularItalic []byte

	//go:embed SF-Mono-Heavy.otf
	Bold []byte
	//go:embed SF-Mono-HeavyItalic.otf
	BoldItalic []byte
)

Functions

func LoadFontFace

func LoadFontFace(data []byte, opt Options) (font.Face, error)

Types

type Options

type Options = opentype.FaceOptions

Jump to

Keyboard shortcuts

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