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

This commit is contained in:
xiaoqidun committed 2026-07-15 16:07:20 +08:00
1 parent e2896381e2
commit bc02d9e7f6
4 files changed
+22 -9

No files matched your search

+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),