Ticket T857780
Visible to All Users

Strange font on form title with Ribbon

created 5 years ago

Hi support,
I have a strange behavior in my project.
I'm using the ribbon with the SupportNonClientDrawing=true.
The caption of my main form has a strange Font (seems Sans Serif).
See the picture in attachment
If I set the SupportNonClientDrawing=false the title of the form is correct.

I tried to change all the fonts without success. Even in my dfm file (as text) there is no Sans Serif font inside (only tahoma).
If I create a new project and I copy and past all the controls of my first project I don't have the same issue.
This is an old project that I migrated from D7 to XE7 and now to Delphi Rio 10.3 and from various version of DevExpress.
Now I'm using the 19.1.6.

Can you help me?
Thanks in advance
Sonia

Comments (1)
DevExpress Support Team 5 years ago

    Hello Sonia,

    It is difficult to determine the cause of this behavior without examining a sample project. I suggest that you place a break point into the TdxRibbonPainter.DrawRibbonFormCaptionText method of the dxRibbon.pas unit and trace the source code to see why this font is used.

    If this does not help, please provide us with a sample project so that we can examine it on our side.

    Answers

    created 5 years ago

    Hi Paulo,
    Found the issue.
    My project was builded with record field alignment ->Byte and the dxSystemInfo.lfCaptionFont.lfFaceName was ''
    I put the record field alignment ->Quad word and now works fine.

    Regards
    Sonia

      Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

      Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.