Skip to content

Commit

Permalink
Update loadzip.go
Browse files Browse the repository at this point in the history
  • Loading branch information
Coloured-glaze authored Jan 4, 2023
1 parent 4020924 commit 5fcdebd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions filetool/loadzip.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 5fcdebd

Please sign in to comment.