mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-30 01:27:26 +08:00
1 parent
b03cdf3ad0
commit
a812d7ed8e
1 file changed
+1
-1
@@ -193,7 +193,7 @@ func subsetSFNTFont(data []byte, glyphs []uint16, mapped bool) ([]byte, error) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
tables := make(map[string][]byte)
|
tables := make(map[string][]byte)
|
||||||
for _, tag := range []string{"cmap", "head", "hhea", "hmtx", "maxp", "OS/2", "post", "name", "glyf", "loca", "cvt ", "fpgm", "prep", "gasp"} {
|
for _, tag := range []string{"cmap", "head", "hhea", "hmtx", "vhea", "vmtx", "maxp", "OS/2", "post", "name", "glyf", "loca", "cvt ", "fpgm", "prep", "gasp"} {
|
||||||
if table := sfnt.Tables[tag]; table != nil {
|
if table := sfnt.Tables[tag]; table != nil {
|
||||||
tables[tag] = table
|
tables[tag] = table
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user