feat(图像渲染): 优化图像渲染
build.yaml / build (push) Successful in 38s

This commit is contained in:
2026-07-15 16:07:20 +08:00
parent e2896381e2
commit bc02d9e7f6
4 changed files with 22 additions and 9 deletions
+2
View File
@@ -71,6 +71,8 @@ func NewRenderer(reader *Reader, opts ...RendererOption) *Renderer {
DrawParams: reader.drawParamCache,
CompositeGraphicUnits: reader.compositeGraphicUnitCache,
FontMap: make(map[string]*canvas.FontFamily),
FontGIDMap: make(map[string]map[uint16]rune),
FontCIDMap: make(map[string]map[uint16]rune),
fontFSCache: make(map[fontFSKey]*canvas.FontFamily),
textGlyphPathCache: make(map[textGlyphPathCacheKey]textGlyphPathCacheValue),
templatePageCache: make(map[string]*PageContent),