NewLabelWithFont creates and returns a label panel with the specified text drawn using the specified font.
(msg string, font *text.Font)
| 44 | // NewLabelWithFont creates and returns a label panel with |
| 45 | // the specified text drawn using the specified font. |
| 46 | func NewLabelWithFont(msg string, font *text.Font) *Label { |
| 47 | |
| 48 | l := new(Label) |
| 49 | l.initialize(msg, font) |
| 50 | return l |
| 51 | } |
| 52 | |
| 53 | // initialize initializes this label and is normally used by other |
| 54 | // components which contain a label. |
no test coverage detected