hi,
how can i calculate the linespacing for multiple textlines to fit in a fixed textbox.
For expample:
Font=Verdana, Size=12pt, Style=Regular
I have 3 textlines with this font and a fixed textbox-height of 180 pixels. So i want to fit the 3 textlines exactly in this textbox w/o any inner-margins.
i try to calculate Ascent and Descent of that font but it does not fit, whats wrong?
Can i get a c# sample how to do this?