Back to

package font

v0.0.0 (278e9bc)
Latest Go to latest
Published: Jun 3, 2020 | Licenses: MIT, Unlicense | Module:


Package font implements a central font registry.


func Default

func Default() *text.FontRegistry

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

func Register

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

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

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
f or F : Jump to identifier