pixelsToWidth method
Converts column width in pixels into column width in characters.
Implementation
double pixelsToWidth(int pixels) {
final double dDigitWidth = maxDigitWidth;
return (pixels > dDigitWidth + 5)
? _truncate((pixels - 5) / dDigitWidth * 100 + 0.5) / 100
: pixels / (dDigitWidth + 5);
}