The bitmap font does not scale correctly and the FontMetric method does not provide the correct values for it.
But it worked correctly in WPTools 4.11d. May be you have lost some functionality during version 5 development.
You will need a new font as replacement
It's our own font used for more than 10 years in all versions of our products and there is no source to get a "new font" from. Actually, it is a set of 5 bitmap fonts and it is simpler for us to replace an WPTools with another component than to get rid of this font.
This "bug" could have been checked quicker with more information about the application.
The application is planet ephemeris. The program calculates planetary positions and displays those in table form. What additional information you need?
BTW: The code ... works, but with Delphi 2010
Yes, it is specially built for D2010. In D7 I used WP.Text= S where S is a string of raw programmatically generated RTF text.
You have an unnecessary conversion to unicode string and back to ANSI.
I don't make any conversion, I guess. TString L is used as a container to load raw RTF text from file. In real application S AnsiString used as such a container.
The problem here is solely the font. That is no TTF font - in fact it is a bitmap font and it does not scale correctly.
Yes, it's not a TTF font but a bitmap one and there was no such problem in previous WPTools versions.
BTW any small to medium size font we see on a screen of MS Word is actually a bitmap font. I am using a special TTF font for printing only. This is only a way to make both screen view and printed paper documents sharp and crisp.
TTF vector fonts look on a screen acceptably only in case of very big size. Verdana TTF you see in MS Word screen actually one of MS Sans Serif bitmap fonts. Automatic rendition of TTF into bitmap screen image makes font jigged as you might see on the above screenshot.
Anyway, thank you for your help, many things are clear now.
P.S.
It would be convenient if you allow forum attachments or inline images. Upgrade to phpbb3, it is much, much better and also is free.