MCPcopy Index your code
hub / github.com/gonum/plot / Extents

Method Extents

text/plain.go:28–31  ·  view source on GitHub ↗

Extents returns the Extents of a font.

(fnt font.Font)

Source from the content-addressed store, hash-verified

26
27// Extents returns the Extents of a font.
28func (hdlr Plain) Extents(fnt font.Font) font.Extents {
29 face := hdlr.Fonts.Lookup(fnt, fnt.Size)
30 return face.Extents()
31}
32
33// Lines splits a given block of text into separate lines.
34func (hdlr Plain) Lines(txt string) []string {

Callers

nothing calls this directly

Calls 2

LookupMethod · 0.80
ExtentsMethod · 0.65

Tested by

no test coverage detected