SetHTMLBytes does SetHTML with bytes as input -- more efficient -- use this if already in bytes
(str []byte, font *styles.FontRender, txtSty *styles.Text, ctxt *units.Context, cssAgg map[string]any)
| 417 | // SetHTMLBytes does SetHTML with bytes as input -- more efficient -- use this |
| 418 | // if already in bytes |
| 419 | func (tr *Text) SetHTMLBytes(str []byte, font *styles.FontRender, txtSty *styles.Text, ctxt *units.Context, cssAgg map[string]any) { |
| 420 | if txtSty.HasPre() { |
| 421 | tr.SetHTMLPre(str, font, txtSty, ctxt, cssAgg) |
| 422 | } else { |
| 423 | tr.SetHTMLNoPre(str, font, txtSty, ctxt, cssAgg) |
| 424 | } |
| 425 | } |
| 426 | |
| 427 | // This is the No-Pre parser that uses the golang XML decoder system, which |
| 428 | // strips all whitespace and is thus unsuitable for any Pre case |
nothing calls this directly
no test coverage detected