Skip to content

vg: restore FontDirs initialization

Sebastien Binet requested to merge sbinet-gonum:vg-syscall-fixup into master

PR gonum/plot#335 moved the vg-syscall into a different file to support gopherjs. But it dropped the initialization of the FontDirs global variable. Fix this and also move the global const 'importString' closer to its usage, in vg/font_syscall.go.

Add a test to make sure we don't regress.

Merge request reports