From 640d2c720b5410162159ce1ba28deb39b1dbeb26 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Fri, 15 May 2015 15:50:07 +0200 Subject: Move scale into main --- hershey.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'hershey.go') diff --git a/hershey.go b/hershey.go index f4618ed..585f3ce 100644 --- a/hershey.go +++ b/hershey.go @@ -53,7 +53,7 @@ func parseData(s string, w, h, scale Unit) Set { return st } -func loadFont(fname string) Font { +func loadFont(fname string, scale Unit) Font { fnt := make(Font) f, err := os.Open(fname) @@ -70,7 +70,6 @@ func loadFont(fname string) Font { l := parsePoint(line[8]) r := parsePoint(line[9]) w := r - l - scale := Unit(2.5) fnt[rune(n)] = Glyph{ S: parseData(line[10:], w, 32, scale), W: w * scale, -- cgit v1.2.3