Extents returns the Extents of a font.
(fnt font.Font)
| 39 | |
| 40 | // Extents returns the Extents of a font. |
| 41 | func (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. |
| 47 | func (hdlr Latex) Lines(txt string) []string { |