in reply to Letters Width

This is almost as hard as to program a whole html-renderer engine. Moreover, this engine should be equivalent to Internet Explorer's one, or your page count estimate could mismatch the real one.