BurntSushi / xgbutil

A utility library to make use of the X Go Binding easier. (Implements EWMH and ICCCM specs, key binding support, etc.)
Do What The F*ck You Want To Public License
194 stars 46 forks source link

needs fix to work with current freetype #3

Closed droundy closed 12 years ago

droundy commented 12 years ago

$ go get -u github.com/BurntSushi/xgbutil/xgraphics

github.com/BurntSushi/xgbutil/xgraphics

../../../../BurntSushi/xgbutil/xgraphics/text.go:36: c.FUnitToPixelRU undefined (type freetype.Context has no field or method FUnitToPixelRU) ../../../../BurntSushi/xgbutil/xgraphics/text.go:36: font.UnitsPerEm undefined (type truetype.Font has no field or method UnitsPerEm) ../../../../BurntSushi/xgbutil/xgraphics/text.go:60: c.FUnitToPixelRU undefined (type freetype.Context has no field or method FUnitToPixelRU) ../../../../BurntSushi/xgbutil/xgraphics/text.go:60: font.UnitsPerEm undefined (type truetype.Font has no field or method UnitsPerEm)

A quick google search indicates that this breakage results from the change "freetype: move the scaling from FUnits to pixels from package freetype to package truetype."

http://code.google.com/p/freetype-go/source/detail?spec=svn15b6d4e041517055da50fd23f5f4b4cc2c66ee94&r=15b6d4e041517055da50fd23f5f4b4cc2c66ee94

I would submit a fix, but am a bit intimidated, since I've never used any of these packages myself (and was just trying to compile go.uik working).

BurntSushi commented 12 years ago

Fixed (for now).