convert HtmlFormatter to use ITextMeasure
progress towards using gdi