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

Method Extents

text/latex.go:41–44  ·  view source on GitHub ↗

Extents returns the Extents of a font.

(fnt font.Font)

Source from the content-addressed store, hash-verified

39
40// Extents returns the Extents of a font.
41func (hdlr Latex) Extents(fnt font.Font) font.Extents {
42 face := hdlr.Fonts.Lookup(fnt, fnt.Size)
43 return face.Extents()
44}
45
46// Lines splits a given block of text into separate lines.
47func (hdlr Latex) Lines(txt string) []string {

Callers

nothing calls this directly

Calls 2

LookupMethod · 0.80
ExtentsMethod · 0.65

Tested by

no test coverage detected