feat(字体图像): 优化字体图像与导出稳定性
build.yaml / build (push) Successful in 6m36s

This commit is contained in:
xiaoqidun committed 2026-10-16 08:39:54 +08:00
1 parent 8f9e194c0c
commit bb3abdea1d
22 files changed
+322 -122

No files matched your search

+1 -4
View File
@@ -33,10 +33,7 @@ func (p Path) Transform(matrix Matrix) (Path, error) {
}
}
matrixScale := math.Max(math.Max(math.Abs(matrix.a), math.Abs(matrix.b)), math.Max(math.Abs(matrix.c), math.Abs(matrix.d)))
determinant := 0.0
if matrixScale != 0 {
determinant = (matrix.a/matrixScale)*(matrix.d/matrixScale) - (matrix.b/matrixScale)*(matrix.c/matrixScale)
}
determinant, _ := matrixProductSum(matrix.a, matrix.d, -matrix.b, matrix.c)
transform := func(p Point) Point {
x, y := matrix.Transform(p.X, p.Y)
return Point{x, y}