mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-30 01:27:26 +08:00
1 parent
0322995771
commit
677396c71d
12 files changed
+377
-64
No files matched your search
@@ -17,6 +17,7 @@ package ofdgo
|
||||
|
||||
import (
|
||||
"archive/zip"
|
||||
"image"
|
||||
"io"
|
||||
"io/fs"
|
||||
|
||||
@@ -79,6 +80,7 @@ func NewRenderer(reader *Reader, opts ...RendererOption) *Renderer {
|
||||
fontDirCandidates: make(map[string][]fontFileCandidate),
|
||||
textGlyphPathCache: make(map[textGlyphPathCacheKey]textGlyphPathCacheValue),
|
||||
templatePageCache: make(map[string]*PageContent),
|
||||
imageCache: make(map[string]image.Image),
|
||||
}
|
||||
for _, opt := range opts {
|
||||
opt(r)
|
||||
|
||||
Reference in new issue
Block a user