Liberation fonts
First stab at embedding Liberation fonts.
The embedded asset is generated by running go generate ./vg/fonts
vg/fonts/mk-fonts.go
downloads a version of the liberation fonts from Fedora, untars it somewhere and runs go-bindata -o liberation_fonts_generated.go
The increase in size for a given binary (the histogram test) is as follows:
run-hist-old 8458416
run-hist-new 10809200
perhaps we could recoup some space by having people import _ "gonum.org/plot/vg/fonts"
using the same kind of mechanism than database/sql
's Driver
?
In that case, perhaps it would be better to have the Liberation fonts live under "gonum.org/plot/vg/fonts/liberation"
and put the fonts
registration mechanism under "vg/fonts"
But this would require client's code modification... (a relatively simple one, but still...)
Also, there is a fair amount of test-files updates...
could someone make sure I haven't made any mistake? (the Liberation
fonts are somewhat different in height.)
Fixes #107 (closed)