mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-29 14:31:12 +08:00
This commit is contained in:
1 parent
460701f4d9
commit
627a06cda3
4 files changed
+69
-47
No files matched your search
@@ -717,7 +717,7 @@ func (h *Host) readFonts() {
|
||||
}
|
||||
|
||||
// loadFont 按转换请求读取单个系统字体
|
||||
// 入参: ctx 调用上下文, name 字体文件路径及字体索引
|
||||
// 入参: ctx 调用上下文, name 字体别名对应的文件名
|
||||
// 返回: []byte 字体数据, error 读取错误
|
||||
func (h *Host) loadFont(ctx context.Context, name string) ([]byte, error) {
|
||||
if err := ctx.Err(); err != nil {
|
||||
|
||||
Reference in new issue
Block a user