calculateSpaceThreshold method
Calculates an appropriate threshold for determining if a gap should be considered a space
This method analyzes the distribution of gaps between artifacts to determine a suitable threshold for identifying spaces.
Returns: An integer representing the minimum gap width to be considered a space
Implementation
int calculateSpaceThreshold() {
// A space is typically 1.5-2.5x wider than normal kerning
return max(_averageKerning * 2, averageWidth ~/ 3);
}