aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-05-14 23:42:14 +0200
committerDimitri Sokolyuk <demon@dim13.org>2015-05-14 23:42:14 +0200
commit7dc2a4bd862f72e51935b97f0802dbba06fb9b95 (patch)
tree338861ba9256b64c9bccad3fbeeacda7efd8b743 /main.go
parent054700bf7efb8a346f13e59b10afca3cade3dc52 (diff)
Switch to float values
Diffstat (limited to 'main.go')
-rw-r--r--main.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/main.go b/main.go
index 149537e..c6332a2 100644
--- a/main.go
+++ b/main.go
@@ -25,9 +25,9 @@ var selector = map[string]string{
}
func main() {
- fnt := loadFont("data/hershey")
- var x, y int
+ var x, y Unit
+ fnt := loadFont("data/hershey")
m := getMap("data/" + selector["Roman Simplex"])
f := fnt.Select(m)
@@ -35,9 +35,9 @@ func main() {
gl := f[rune(i)]
if y+gl.W >= 4000 {
y = 0
- x += 200
+ x += 100
}
- fmt.Printf("^%d,%d,%s", x, y, gl)
+ fmt.Printf("^%v,%v,%s", x, y, gl)
y += gl.W
}
}