mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-29 08:46:55 +08:00
1 parent
3f797e656b
commit
91e5b57e24
43 files changed
+2018
-384
No files matched your search
@@ -647,6 +647,9 @@ func (e *Editor) restoreFontSnapshot(state Editor) {
|
||||
state = state.transactionSnapshot()
|
||||
state.history, state.historyIndex, state.historyLimit = e.history, e.historyIndex, e.historyLimit
|
||||
state.serial, state.revision = e.serial, e.revision
|
||||
if !sameBackend(state.backends.FontResources, e.backends.FontResources) {
|
||||
state.clearFontResourceCache()
|
||||
}
|
||||
state.backends, state.fontDirs, state.fontFS = e.backends, e.fontDirs, e.fontFS
|
||||
state.encryption, state.output, state.OnWriteProgress = e.encryption, e.output, e.OnWriteProgress
|
||||
state.fontRenderer, state.fontSourcesCache = nil, nil
|
||||
|
||||
Reference in new issue
Block a user