Index | Files | Directories

package font

import ""

Package font implements a central font registry.


Package Files


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.


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-05-27. Refresh now. Tools for package owners.