Help us shape the future of Go! Take the 2026 Go Developer Survey

bundledfonts

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2026 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Overview

Package bundledfonts embeds the files of paint's bundled families (Inter, Lora, Go Mono, DejaVu Sans), from go-opentype/fonts, by the names paint.BundledFontNames gives. paint embeds them through it unless built with webengine_fontsext; a host built with that tag serves these same files (a native tool writes them out with Data), and its tests hand them over with paint.SetFontSource(bundledfonts.Source).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Data

func Data(name string) []byte

Data is the embedded file of a bundled face by its name, nil for another name.

func Source

func Source(name string) ([]byte, error)

Source is Data as a paint.SetFontSource source.

Types

This section is empty.

Jump to

Keyboard shortcuts

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