* Determine wrap pixel count. Either specified or by experimental fudge factor. * Note that experimental factor will never be correct for variable width fonts.
(wrapPixels, wrapCount, widthFactor)
| 454 | * Note that experimental factor will never be correct for variable width fonts. |
| 455 | */ |
| 456 | function computeWidth (wrapPixels, wrapCount, widthFactor) { |
| 457 | return wrapPixels || ((0.5 + wrapCount) * widthFactor); |
| 458 | } |
| 459 | |
| 460 | /** |
| 461 | * Compute default font width factor to use. |