aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2018-01-30 19:12:07 +0100
committerDimitri Sokolyuk <demon@dim13.org>2018-01-30 19:12:07 +0100
commitdcae7f43926adcfa3b082f4d0d2f0435fb61faef (patch)
treeaaa5aca70d1b3020820109847fd6ad1601bbe871 /main.go
parent1aec500f91e439efa1df7d63f0bbcc83300552ab (diff)
add height to each glyph
Diffstat (limited to 'main.go')
-rw-r--r--main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.go b/main.go
index f90f82e..bfa97e6 100644
--- a/main.go
+++ b/main.go
@@ -43,7 +43,6 @@ func printAll(f Font) {
}
func printStruct(f Font) {
- fmt.Println("var height = 32")
fmt.Println("var font = Font{")
for i := 0; i < len(f); i++ {
r := rune(i + 32)
@@ -59,6 +58,7 @@ func printStruct(f Font) {
}
fmt.Println("},")
fmt.Printf("Width: %v,\n", gl.Width)
+ fmt.Printf("Height: %v,\n", gl.Height)
fmt.Println("},")
}
fmt.Println("}")