fix(server): widen letter-spacing normalization bounds to ±256
Negative and larger letter spacing values are legitimate for extracted text layers; clamp only outside ±256 instead of rejecting anything below 0 (or above 80 in the extractor). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -353,7 +353,7 @@ func normalizeLineHeight(value float64, fontSize float64) float64 {
|
||||
}
|
||||
|
||||
func normalizeLetterSpacing(value float64) float64 {
|
||||
if value < 0 || value > 80 {
|
||||
if value < -256 || value > 256 {
|
||||
return 0
|
||||
}
|
||||
return value
|
||||
|
||||
Reference in New Issue
Block a user