feat(渲染逻辑): 完善图片另存与缺字体处理
build.yaml / build (push) Successful in 52s

This commit is contained in:
xiaoqidun committed 2026-09-28 22:59:39 +08:00
1 parent 30d9699385
commit 4d0a909de5
14 files changed
+438 -50

No files matched your search

+12 -1
View File
@@ -153,8 +153,19 @@ func objectGeometryPath(geometry GeometryBackend, object PathObject) (GeometryPa
// 入参: path 填充路径
// 返回: GeometryPath 显式闭合路径
func closedGeometry(path GeometryPath) GeometryPath {
open, missing := false, false
for _, segment := range path {
if segment.Verb == GeometryMove && open {
missing = true
break
}
open = segment.Verb != GeometryClose
}
if !missing && !open {
return path
}
result := make(GeometryPath, 0, len(path)+1)
open := false
open = false
for _, segment := range path {
if segment.Verb == GeometryMove && open {
result = append(result, GeometrySegment{Verb: GeometryClose})