gonum / plot

A repository for plotting and visualizing data
BSD 3-Clause "New" or "Revised" License
2.74k stars 203 forks source link

FunitsPerEm undefined #170

Closed eaburns closed 9 years ago

eaburns commented 9 years ago

Original issue 142 created by eaburns on 2014-06-17T13:56:29.000Z:

What steps will reproduce the problem?

  1. execute first example 2. 3.

What is the expected output? What do you see instead? allot like the demo

What version of the product are you using? On what operating system?

Please provide any additional information below. I have Imac OSX 10.9.3. The following is the error output:

code.google.com/p/plotinum/vg

mygo/src/code.google.com/p/plotinum/vg/font.go:150: f.Font().FUnitsPerEm undefined (type *truetype.Font has no field or method FUnitsPerEm)
mygo/src/code.google.com/p/plotinum/vg/font.go:150: too many arguments in call to f.font.Bounds
mygo/src/code.google.com/p/plotinum/vg/font.go:151: f.Font().FUnitsPerEm undefined (type *truetype.Font has no field or method FUnitsPerEm)
mygo/src/code.google.com/p/plotinum/vg/font.go:162: f.font.FUnitsPerEm undefined (type *truetype.Font has no field or method FUnitsPerEm)
mygo/src/code.google.com/p/plotinum/vg/font.go:169: f.font.FUnitsPerEm undefined (type *truetype.Font has no field or method FUnitsPerEm)
mygo/src/code.google.com/p/plotinum/vg/font.go:169: too many arguments in call to f.font.Kerning
mygo/src/code.google.com/p/plotinum/vg/font.go:171: f.font.FUnitsPerEm undefined (type *truetype.Font has no field or method FUnitsPerEm)
mygo/src/code.google.com/p/plotinum/vg/font.go:171: too many arguments in call to f.font.HMetric
logout
eaburns commented 9 years ago

Comment #1 originally posted by eaburns on 2014-06-17T23:34:06.000Z:

I just updated, tried it, and it worked fine. When did you last install freetype-go? FUnitsPerEm was added back in 2012: https://code.google.com/p/freetype-go/source/detail?spec=svn15b6d4e041517055da50fd23f5f4b4cc2c66ee94&r=15b6d4e041517055da50fd23f5f4b4cc2c66ee94.

Could you please try updating Plotinum and its dependencies and trying it again?: go get -u -v code.google.com/p/plotinum/...

eaburns commented 9 years ago

Comment #2 originally posted by eaburns on 2014-06-20T22:14:12.000Z:

I'm closing this. I believe that it's just a matter of updating your dependencies. Please reopen it if the issue persists.