From: Alexis Laferrière Date: Mon, 17 Nov 2014 17:40:20 +0000 (-0500) Subject: contrib/friendz: update to use new type of `TileSetFont::hspace` X-Git-Tag: v0.6.11~30^2 X-Git-Url: http://nitlanguage.org contrib/friendz: update to use new type of `TileSetFont::hspace` Signed-off-by: Alexis Laferrière --- diff --git a/contrib/friendz/src/friendz.nit b/contrib/friendz/src/friendz.nit index b8187ff..3877fe2 100644 --- a/contrib/friendz/src/friendz.nit +++ b/contrib/friendz/src/friendz.nit @@ -834,7 +834,7 @@ redef class Display fun measureText(str: String, height: Int): Int do var font = app.game.font - return str.length * (app.game.font.width + app.game.font.hspace) + return str.length * (font.width + font.hspace.to_i) end # displays a debug rectangle