feat(编辑能力): 优化字体资源及图像处理链路
build.yaml / build (push) Successful in 49s

This commit is contained in:
xiaoqidun committed 2026-10-13 12:01:49 +08:00
1 parent 7e774f99df
commit 5a88a9f31f
8 files changed
+78 -22

No files matched your search

+3
View File
@@ -202,6 +202,9 @@ func (e *Editor) retainDocumentResources(source *Editor) {
maps.Copy(e.fonts, source.fonts)
maps.Copy(e.images, source.images)
maps.Copy(e.resourceID, source.resourceID)
if sameBackend(e.backends.FontResources, source.backends.FontResources) {
e.fontRegistration = source.fontRegistration
}
e.maxID = max(e.maxID, source.maxID)
e.fontRenderer, e.fontMetrics = source.fontRenderer, source.fontMetrics
}