gonum/plot: Font conversion issue?

40 views
Skip to first unread message

davidkl...@gmail.com

unread,
Dec 19, 2020, 8:37:57 AM12/19/20
to gonum-dev

I recently updated gonum plot via


but errors seem to occur

../../go/pkg/mod/gonum.org/v1/pl...@v0.8.1/text/latex.go:36:3: cannot use fnt.Font() (type *truetype.Font) as type *sfnt.Font in field value
../../go/pkg/mod/gonum.org/v1/pl...@v0.8.1/text/latex.go:37:3: cannot use fnt.Font() (type *truetype.Font) as type *sfnt.Font in field value
../../go/pkg/mod/gonum.org/v1/pl...@v0.8.1/text/latex.go:38:3: cannot use fnt.Font() (type *truetype.Font) as type *sfnt.Font in field value
../../go/pkg/mod/gonum.org/v1/pl...@v0.8.1/text/latex.go:64:3: cannot use sty.Font.Font() (type *truetype.Font) as type *sfnt.Font in field value
../../go/pkg/mod/gonum.org/v1/pl...@v0.8.1/text/latex.go:65:3: cannot use sty.Font.Font() (type *truetype.Font) as type *sfnt.Font in field value
../../go/pkg/mod/gonum.org/v1/pl...@v0.8.1/text/latex.go:66:3: cannot use sty.Font.Font() (type *truetype.Font) as type *sfnt.Font in field value
../../go/pkg/mod/gonum.org/v1/pl...@v0.8.1/vg/vggio/vg.go:100:16: unknown field 'Rect' in struct literal of type paint.PaintOp

it seems to be some errors, but at the same time, I see that the CI tests for gonum/plot is passing. Has anyone encountered similar issues? Or has suggestions for resolving it?

Thanks in advance,

David

Sebastien Binet

unread,
Dec 19, 2020, 11:20:20 AM12/19/20
to davidkl...@gmail.com, gonu...@googlegroups.com
Could you retry?
I've just merged https://github.com/gonum/plot/pull/655 which should fix it.

Cheers,
-s


Sent from ProtonMail mobile



-------- Original Message --------
--
You received this message because you are subscribed to the Google Groups "gonum-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gonum-dev+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gonum-dev/9234ce8b-6b40-4979-b7ad-09be742c53fcn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages