Width returns the width of lines of text when using the given font before any text rotation is applied.
(txt string)
| 101 | // Width returns the width of lines of text |
| 102 | // when using the given font before any text rotation is applied. |
| 103 | func (s Style) Width(txt string) (max vg.Length) { |
| 104 | w, _ := s.box(txt) |
| 105 | return w |
| 106 | } |
| 107 | |
| 108 | // Height returns the height of the text when using |
| 109 | // the given font before any text rotation is applied. |