plot icon indicating copy to clipboard operation
plot copied to clipboard

plot/vg: consider using golang.org/x/image/font/sfnt for parsing fonts

Open sbinet opened this issue 8 years ago • 4 comments

right now, we are using "github.com/golang/freetype" and "github.com/golang/freetype/truetype". They work fine, but the license is a dual one (BSD-like or GPL2+) : https://github.com/golang/freetype/blob/master/LICENSE

We should perhaps consider use instead the new: https://godoc.org/golang.org/x/image/font/sfnt

(which is released under the same license than Go itself (BSD-3))

for this to happen, though, the following methods will need to be implemented for sfnt.Font:

sbinet avatar Nov 23 '16 08:11 sbinet

https://go-review.googlesource.com/c/37410/ added sfnt.Font.Kern.

sbinet avatar Mar 01 '17 14:03 sbinet

https://go-review.googlesource.com/39670 added sfnt.Font.Bounds.

sbinet avatar Apr 10 '17 08:04 sbinet

https://go-review.googlesource.com/#/c/67330/ is adding metrics to font.

sbinet avatar Sep 30 '17 17:09 sbinet

freetype/truetype.Font.Index is spelled sfnt.GlyphIndex.

sbinet avatar Oct 02 '17 09:10 sbinet

this has been done at some point.

sbinet avatar Aug 31 '23 08:08 sbinet