mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-29 15:06:46 +08:00
1 parent
8979550127
commit
05579265b8
5 files changed
+178
-17
No files matched your search
@@ -53,11 +53,10 @@ func (r *Reader) compressionFontUsage(ctx context.Context, documents map[string]
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
fonts := root.child("Fonts")
|
||||
if fonts == nil {
|
||||
continue
|
||||
}
|
||||
for _, font := range fonts.children {
|
||||
for font := range editorResourceNodes(root, "Fonts", "Font") {
|
||||
if err := ctx.Err(); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
file := font.child("FontFile")
|
||||
if file == nil {
|
||||
continue
|
||||
|
||||
Reference in new issue
Block a user