For a labeling program that we are using we need to scale fonts to the maximum size that we have available on a specific place on the paper.
This means that we may have a box from position 10,10,200,VFREE and the text that needs to be as llarge as possible so it will fit nicely in the box.
To determine which size will still fit the box I use the RenderBoxRTF. This should return the nRenderWidth and nRenderHeight.
This is where I get confused: is the nRenderHeight to value of the the VFREE? Is this the 'end of the box'.
Even when I do a WriteBoxRTF and check the returned nBottomY I get the same value. I'm sure that I'm missing the point here somewhere...
What I want to know is: what is the 'end coordinate' of the box. Once I have this I can use it to determine if the font can be scaled down (or up) until it fits nicely in the given space.
Your help is appreciated.