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

Method Box

text/text.go:30–30  ·  view source on GitHub ↗

Box returns the bounding box of the given non-multiline text where: - width is the horizontal space from the origin. - height is the vertical space above the baseline. - depth is the vertical space below the baseline, a positive number.

(txt string, fnt font.Font)

Source from the content-addressed store, hash-verified

28 // - height is the vertical space above the baseline.
29 // - depth is the vertical space below the baseline, a positive number.
30 Box(txt string, fnt font.Font) (width, height, depth vg.Length)
31
32 // Draw renders the given text with the provided style and position
33 // on the canvas.

Callers 3

TestPlainTextFunction · 0.65
boxMethod · 0.65
TestLatexTextFunction · 0.65

Implementers 2

Latextext/latex.go
Plaintext/plain.go

Calls

no outgoing calls

Tested by 2

TestPlainTextFunction · 0.52
TestLatexTextFunction · 0.52