Extents returns the Extents of a font.
(fnt font.Font)
| 26 | |
| 27 | // Extents returns the Extents of a font. |
| 28 | func (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. |
| 34 | func (hdlr Plain) Lines(txt string) []string { |