I see a GetStringWidth but I do not see one for height? Am I missing it?
Talk here about issues with one of the components hosted at wxCode, or suggest features for it.
2 posts • Page 1 of 1
Everydaydiesel wrote:I see a GetStringWidth but I do not see one for height? Am I missing it?
The method you are seeking for is GetFontSize. This method returns the size of the currently selected font in points, where 1 point equals 1/72 inch. It is not necessary to calculate the text height of a text string, because it is determined by the font size.
For readable text output the line height should typically be about 25 % higher than the font size.
If you need more details about the currently selected font, you can use method GetDescription of the wxPdfFont class, which returns a wxPdfFontDescription object.
Who is online
Users browsing this forum: No registered users and 1 guest