feat(字体解耦): 解耦字体依赖,完善字体处理
build.yaml / build (push) Successful in 47s

This commit is contained in:
xiaoqidun committed 2026-10-11 00:52:01 +08:00
1 parent 051fc3b65e
commit cf8dfd046b
21 files changed
+1071 -237

No files matched your search

+1 -3
View File
@@ -22,8 +22,6 @@ import (
"path"
"slices"
"sort"
"github.com/tdewolff/font"
)
const (
@@ -246,7 +244,7 @@ func (r *Reader) embeddedFontFace(of Font) (*FontFace, error) {
if err != nil {
return nil, err
}
if data, err = font.ToSFNT(data); err == nil {
if data, err = decodeFontContainer(data); err == nil {
if count, err := fontFileCount(data); err == nil {
faces = make([]*FontFace, count)
for index := range faces {