go-chart icon indicating copy to clipboard operation
go-chart copied to clipboard

font: initialize default font once

Open yarcat opened this issue 4 years ago • 0 comments

Before this change parallel first executions of Render would fail the -race check. GOARCH=386 or amd64 would continue working fine, but arm sometimes would freeze the first invocation (I haven't dug deep enough to obtain traces).

Platforms tested:

  • Windows 10
  • Linux: crostini (ChromeOS)
  • Linux: raspberrypi
# crostini
uname -a
Linux penguin 5.4.109-26077-g12746d86825a #1 SMP PREEMPT Mon May 17 21:44:06 PDT 2021 x86_64 GNU/Linux

# raspberry pi
Linux raspberrypi 5.10.17-v7l+ #1414 SMP Fri Apr 30 13:20:47 BST 2021 armv7l GNU/Linux

yarcat avatar Jun 08 '21 17:06 yarcat