cart: empty [ Login ]

calculate font's height

1 
vjedlicka
9/28/2008 9:29 PM

Hello, I need to export various texts. I am using the DxfMText class. The texts have different fonts. That means I need to calculate the height (3dr parameter of the DxfMText contructor) from System.Drawing.Font class. How can I do that? I looked at the Font::Height property, but there are 3 overloads. Which one would work best? Thank you Vaclav

Wout
9/29/2008 11:42 AM

Hi, The text's height for TEXT / MTEXT corresponds with the font's socalled ascent. Wout

1