monospace

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package monospace provides functions to work with monospace fonts.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Rune

func Rune(r rune) int

Rune returns the width of a rune in monospace font.

func Shorten

func Shorten(str string, width int) string

Shorten returns a shortened string to fit the given width in monospace font.

func String

func String(str string) int

String returns the width of a string in monospace font.

Types

This section is empty.

Jump to

Keyboard shortcuts

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