aboutsummaryrefslogtreecommitdiff
path: root/hershey.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-05-15 15:50:07 +0200
committerDimitri Sokolyuk <demon@dim13.org>2015-05-15 15:50:07 +0200
commit640d2c720b5410162159ce1ba28deb39b1dbeb26 (patch)
tree8139cfc15e10042af026b70a51e861584bec9fec /hershey.go
parent7dc2a4bd862f72e51935b97f0802dbba06fb9b95 (diff)
Move scale into main
Diffstat (limited to 'hershey.go')
-rw-r--r--hershey.go3
1 files changed, 1 insertions, 2 deletions
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,