diff --git a/xgraphics/text.go b/xgraphics/text.go
index <HASH>..<HASH> 100644
--- a/xgraphics/text.go
+++ b/xgraphics/text.go
@@ -33,7 +33,7 @@ func (im *Image) Text(x, y int, clr color.Color, fontSize float64,
 	c.SetSrc(textClr)
 
 	// Now let's actually draw the text...
-	pt := freetype.Pt(x, y+c.FUnitToPixelRU(font.UnitsPerEm()))
+	pt := freetype.Pt(x, y+int(font.FUnitsPerEm()))
 	newpt, err := c.DrawString(text, pt)
 	if err != nil {
 		return 0, 0, err
@@ -54,10 +54,7 @@ func (im *Image) Text(x, y int, clr color.Color, fontSize float64,
 func TextMaxExtents(font *truetype.Font, fontSize float64,
 	text string) (width int, height int) {
 
-	// We need a context to calculate the extents
-	c := ftContext(font, fontSize)
-
-	emSquarePix := c.FUnitToPixelRU(font.UnitsPerEm())
+	emSquarePix := int(font.FUnitsPerEm())
 	return len(text) * emSquarePix, emSquarePix
 }
fix breakage due to change in freetype package.