typeface

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2022 License: ISC Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// AvailableFonts is a map of available Font by name.
	AvailableFonts container.GMap[string, Font]

	// FontNames available in the app
	FontNames container.GSlice[string]
)

Functions

func RenderRune

func RenderRune(s tcell.Screen, r rune, font Font, c tcell.Color, x int, y int) *genfuncs.Result[int]

RenderRune renders the FontRune for a specified rune in a Font at a given location.

Types

type Font

type Font container.GMap[rune, FontRune]

Font a map of rune's to their FontRune that make up a font.

type FontRune

type FontRune [][]bool

FontRune is a matrix of booleans that make up a `dot matrix` character in a font.

Jump to

Keyboard shortcuts

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