Avis
04-09-2010, 06:49 AM
Hi All,
I am using an activex with objective grid. I have some user customizable settings for fonts where user can select any kind of Fonts. To change the font I normally call Changestandardstyle() which is a grid function where I pass my LOGFONT as a parameter.
m_cBOBHeaderView->ChangeStandardStyle(CGXStyle().SetFont(l_cFontHead er));
If user select the Font as Cambria Math and size as >170 lets say 199 then my control crashes at Changestandardstyle() with an exception as "Divide By zero".
One thing I noticed is in Cambria Math even if the text height is very less the Row width is pretty much bigger than the font height. In my case I have atleast 3 to 4 views where this font changes simultaniously.
If I change the font size to 199 for any other fonts my control works fine without any crash.
Kindly request you all to please provide some inouts on this as I am facing this problem since long.
Thanks in advance
Avis
I am using an activex with objective grid. I have some user customizable settings for fonts where user can select any kind of Fonts. To change the font I normally call Changestandardstyle() which is a grid function where I pass my LOGFONT as a parameter.
m_cBOBHeaderView->ChangeStandardStyle(CGXStyle().SetFont(l_cFontHead er));
If user select the Font as Cambria Math and size as >170 lets say 199 then my control crashes at Changestandardstyle() with an exception as "Divide By zero".
One thing I noticed is in Cambria Math even if the text height is very less the Row width is pretty much bigger than the font height. In my case I have atleast 3 to 4 views where this font changes simultaniously.
If I change the font size to 199 for any other fonts my control works fine without any crash.
Kindly request you all to please provide some inouts on this as I am facing this problem since long.
Thanks in advance
Avis