gioui.org: gioui.org/font Index | Files | Directories

package font

import "gioui.org/font"

Package font implements a central font registry.

Index

Package Files

font.go

func Default Uses

func Default() *text.FontRegistry

Default returns a singleton *text.Shaper that contains the registered fonts.

func Register Uses

func Register(font text.Font, face text.Face)

Register a face. Register panics if Default has been called.

Directories

PathSynopsis
gofontPackage gofont registers the Go fonts in the font registry.
opentypePackage opentype implements text layout and shaping for OpenType files.

Package font imports 2 packages (graph) and is imported by 11 packages. Updated 2020-04-03. Refresh now. Tools for package owners.