SRGTextPanel::CalcFontAutoSize

intSRGTextPanel::CalcFontAutoSize(void)

Calculates font size for the text panel body if the text style includes CX_FONT_AUTOSIZE

Defined in: SRGTextPanel.cpp

Return Value

Integer used to set the absolute font size

Remarks

Word wrap makes the relationship between font size and text size nonlinear, so we use trial and error to find the best font size.