MCPcopy Create free account
hub / github.com/gonum/plot / FontExtents

Method FontExtents

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

FontExtents returns the extents of this Style's font.

()

Source from the content-addressed store, hash-verified

95
96// FontExtents returns the extents of this Style's font.
97func (s Style) FontExtents() font.Extents {
98 return s.Handler.Extents(s.Font)
99}
100
101// Width returns the width of lines of text
102// when using the given font before any text rotation is applied.

Callers 10

boxMethod · 0.95
DrawMethod · 0.80
drawMethod · 0.80
GlyphBoxesMethod · 0.80
sizeMethod · 0.80
drawMethod · 0.80
GlyphBoxesMethod · 0.80
DrawMethod · 0.80
NewSankeyFunction · 0.80
ExampleHeatMapFunction · 0.80

Calls 1

ExtentsMethod · 0.65

Tested by 1

ExampleHeatMapFunction · 0.64