mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-30 01:27:26 +08:00
1 parent
3f797e656b
commit
91e5b57e24
43 files changed
+2018
-384
No files matched your search
@@ -77,7 +77,10 @@ func resourceFontUsage(ctx context.Context, resources []string, scoped map[strin
|
||||
alternate := cleanPackagePath(resolveResourcePath(name, root.attr("BaseLoc"), value))
|
||||
id, charset := editorResourceID(font.attr("ID")), font.attr("Charset")
|
||||
unsafe := id == "" || charset != "" && !strings.EqualFold(charset, "unicode") || location != alternate
|
||||
for _, path := range []string{location, alternate} {
|
||||
for i, path := range [2]string{location, alternate} {
|
||||
if i == 1 && path == location {
|
||||
continue
|
||||
}
|
||||
if result[path] == nil {
|
||||
result[path] = newEditorFontUsage()
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user