mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-30 01:27:26 +08:00
1 parent
5dcd7a4e8d
commit
6c14eef1ee
39 files changed
+1926
-420
No files matched your search
+1
-1
@@ -282,7 +282,7 @@ func shapedLineWidth(runes []rune, advances []float64, spacing float64) float64
|
||||
// validateTextGlyphs 校验显式字形编号及原文区间,不允许跨TextCode或重叠映射
|
||||
// 入参: obj 文字对象, glyphCount 字体字形数量
|
||||
// 返回: error 无效映射
|
||||
func validateTextGlyphs(obj TextObject, glyphCount uint16) error {
|
||||
func validateTextGlyphs(obj TextObject, glyphCount int) error {
|
||||
if len(obj.CGTransform) == 0 {
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user