feat(转换能力): 完善PDF转换与字形渲染
build.yaml / build (push) Successful in 43s

This commit is contained in:
xiaoqidun committed 2026-09-26 15:59:27 +08:00
1 parent 7cdc1d2c07
commit 4fa65175bc
11 files changed
+1550 -28

No files matched your search

+2
View File
@@ -26,6 +26,7 @@ type canvasBackendState struct {
fontMap map[string]*canvas.FontFamily
svgFontCache map[*canvas.Font]SVGFont
textGlyphPathCache map[textGlyphPathCacheKey]textGlyphPathCacheValue
fontOutlines map[*canvas.Font]*sfntOutliner
}
// canvasState 获取当前渲染器的Canvas私有缓存,按需创建且不向其他后端暴露
@@ -48,4 +49,5 @@ func (s *canvasBackendState) resetFonts() {
s.fontMap = make(map[string]*canvas.FontFamily)
s.svgFontCache = make(map[*canvas.Font]SVGFont)
s.textGlyphPathCache = make(map[textGlyphPathCacheKey]textGlyphPathCacheValue)
s.fontOutlines = make(map[*canvas.Font]*sfntOutliner)
}