mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-29 08:46:55 +08:00
1 parent
5e0da3da28
commit
ee6c9f6a16
82 files changed
+4316
-4310
No files matched your search
+3
-3
@@ -44,6 +44,9 @@ type fontShaper struct {
|
||||
shapeBuffer *harfbuzz.Buffer
|
||||
}
|
||||
|
||||
// shapingFace 固定双向排版的字体来源,不隐式替换字体
|
||||
type shapingFace struct{ face *typefont.Face }
|
||||
|
||||
// ShapeText 使用默认选项塑形单行文字,不改动原文定位
|
||||
// 入参: value 单行原文, size 毫米字号
|
||||
// 返回: []ShapedGlyph 定位字形, error 塑形错误
|
||||
@@ -152,9 +155,6 @@ func (f *fontShaper) ShapeTextWithOptions(value string, size float64, options Te
|
||||
return result, nil
|
||||
}
|
||||
|
||||
// shapingFace 固定双向排版的字体来源,不隐式替换字体
|
||||
type shapingFace struct{ face *typefont.Face }
|
||||
|
||||
// ResolveFace 返回指定字体
|
||||
// 入参: char 字符
|
||||
// 返回: *typefont.Face 字体
|
||||
|
||||
Reference in new issue
Block a user