feat(优化性能): 继续提升性能
build.yaml / build (push) Successful in 34s

This commit is contained in:
2026-07-13 23:38:58 +08:00
parent c8c5ce2cfc
commit 8a68014262
4 changed files with 48 additions and 1 deletions
+1 -1
View File
@@ -148,7 +148,7 @@ func (r *Renderer) renderText(ctx *canvas.Context, obj TextObject, pageH float64
var glyphPath *canvas.Path
var glyphWidth float64
if drawAsGlyphPath {
glyphPath, glyphWidth = textGlyphPath(face, glyph)
glyphPath, glyphWidth = r.cachedTextGlyphPath(face, glyph)
} else {
glyphWidth = textGlyphWidth(face, glyph)
}