From 5fcdebdc0346999c2af4d83d72d388ac43a32ea4 Mon Sep 17 00:00:00 2001 From: Coloured-glaze <63091327+Coloured-glaze@users.noreply.github.com> Date: Wed, 4 Jan 2023 23:10:14 +0800 Subject: [PATCH] Update loadzip.go --- filetool/loadzip.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/filetool/loadzip.go b/filetool/loadzip.go index 05b0bcb..09e1e67 100644 --- a/filetool/loadzip.go +++ b/filetool/loadzip.go @@ -38,8 +38,8 @@ func Parsezip(zipFile string, filemap map[string][]*zip.File) error { } // 打开map中的ttf文件 -func LoadFontFaces(dc *gg.Context, points float64, path string, name string, open bool, filemap map[string][]*zip.File) error { - ft := Findfile(path, name, open, filemap) +func LoadFontFaces(dc *gg.Context, points float64, path string, name string, filemap map[string][]*zip.File) error { + ft := Findfile(path, name, true, filemap) // open if ft.Err != nil { return ft.Err }