Results 1 to 4 of 4

Thread: Issues with Changestandardstyle when the Font selected is Cambria Math Font

  1. #1
    Junior Member
    Join Date
    Dec 2009
    Posts
    4

    Issues with Changestandardstyle when the Font selected is Cambria Math Font

    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_cFontHea der));

    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

  2. #2
    Junior Member
    Join Date
    Oct 2011
    Posts
    1

    Same issue

    Hii.

    i am also facing the same divide by zero crash in the same senario. Did anyone else face this issue and has a solution?
    i am using the following code and it crashes.
    m_cTempView->ChangeStandardStyle(CGXStyle().SetFont(l_cFontTem p));
    Should anyother function apart from ChangeStandardStyle has to be used or the l_cFontTemp has to be initializes with any variables for this special Math font.

    plz help.

    regards,
    kris.

  3. #3
    Junior Member
    Join Date
    Oct 2011
    Posts
    1
    Some time back i handled the fonts in Cambria Math and now i can't get the right code, please rescue.

  4. #4
    Junior Member
    Join Date
    Jan 2015
    Posts
    1
    What is the deal with slx.exe used to "compile" secdbcode.cpp? Is the CPP encrypted?? Why?!
    We are the pioneers in providing ccnp and ccna security pdf with 100% exam pass guarantee. Download our latest 200-120 and yale.edu or pass real exam of rasmussen.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •