feat(注解字形): 优化注解字形与页面写出
build.yaml / build (push) Successful in 45s

This commit is contained in:
xiaoqidun committed 2026-10-04 13:35:47 +08:00
1 parent 5d599dc835
commit 290fc57c34
17 files changed
+220 -38

No files matched your search

+7
View File
@@ -45,6 +45,13 @@ type FontOutlineBatch interface {
GlyphOutlines(glyphs []uint16, size float64) ([]GeometryPath, error)
}
// FontGlyphBounds 提供与字形轮廓一致的边界,字号及边界单位为毫米
// 不使用字体全局边界替代单个字形,空轮廓返回零边界
type FontGlyphBounds interface {
FontOutlines
GlyphBounds(glyph uint16, size float64) (Box, error)
}
// FontGlyphDiagnostics 提供已提取字形的恢复提示,不将提示作为轮廓解析失败
// 字形不存在或不支持的指令仍由GlyphOutline返回错误
type FontGlyphDiagnostics interface {