Comment 40 for bug 988601

Revision history for this message
David Mathog (mathog) wrote :

That patch worked for me on linux. Have not tried it on Windows yet, but don't expect any problems there (only changes in affected files between revisions were the px/pt stuff for font size display.)

It isn't worth posting an entire patch for this, but those px/pt changes prompted me to check font sizes in converted documents and that turned up one rounding error that showed up on rotated text. In emf-print.cpp line 1973 add round() to get:

    int textheight = round(-style->font_size.computed * PX2WORLD * std::min(tf.expansionX(),tf.expansionY()));

In the one test that failed 32pt text rotated 45 degree for came out as -799 when it needed to be -800. round() fixed that.