fsfont

package
v0.0.0-...-0e1f1a5 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2023 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(embed fs.FS) (*text.Shaper, error)

New creates a text.Shaper. It can be re-used across all widget.Label or widget.Editor.

The name of the file must be `{name}_{weight}[_{style}]`, for instance it can be Montserrat-700.ttf or Montserrat-700-Italic.ttf.

func NewMust

func NewMust(embed fs.FS) *text.Shaper

NewMust uses New and panic when error is returned.

Types

This section is empty.

Jump to

Keyboard shortcuts

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