From a78b24d408c4f73ad2bf8bce705f5cfc0d654200 Mon Sep 17 00:00:00 2001 From: Steven Edwards Date: Sun, 9 Aug 2015 12:47:30 -0400 Subject: [PATCH] Modify font loading functions to use fontNamer. --- font.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/font.go b/font.go index ef7274c..279706c 100644 --- a/font.go +++ b/font.go @@ -66,11 +66,11 @@ func FontFileName(fontData FontData) string { } func RegisterFont(fontData FontData, font *truetype.Font) { - fonts[FontFileName(fontData)] = font + fonts[fontNamer(fontData)] = font } func GetFont(fontData FontData) *truetype.Font { - fontFileName := FontFileName(fontData) + fontFileName := fontNamer(fontData) font := fonts[fontFileName] if font != nil { return font