Ticket T1025808
Visible to All Users

ASPxReportDesigner Adding a font is not in alphabetical order

created 4 years ago

To recreate go to the demo page https://demos.devexpress.com/XtraReportsDemos/WebSpecificFeatures/ReportDesigner.aspx

run the following JavaScript in the browser console

JavaScript
ASPxClientControl.GetControlCollection().ForEachControl(function (c) { if(c.name == "ContentHolder_reportDesigner"){ c.designerModel.updateFont({ 'aTestFont': 'aTestFont' }); } });

The font gets added but it is at the end of the list.

Please advice how to order this list alphsbetically

Comments (1)
Vasily (DevExpress Support) 4 years ago

    Hi Adam,

    In the newest versions of our components the Web Report Designer loads the list of fonts that were installed on the web server automatically. So, would you please clarify why you wish to add a new font to the Web Report Designer manually? Have you tried to just install this font on the web server where your application is deployed?

    Answers

    created 4 years ago

    I was trying to find a way to have custom fonts without installing them on the web server, e.g. including the TTF files in the web application and linking to them. Out of curiosity is that possible?

    But thanks I will just install them on the web server for now as that seems to work.

      Comments (1)
      Vasily (DevExpress Support) 4 years ago

        Thank you for your clarification, Adam! Yes, installing the custom fonts is the best solution for this case.
        In case it is not possible to install the fonts, you can operate with the fonts manually as demonstrated in the How to use a private font (a custom font distributed with the application) in XtraReport help topic. But the PrivateFontCollection usage adds complexity to the application and it is not supported by all the environments. This is the reason why we recommend installing font in case it is possible for your web server.

        Feel free to contact us in case you have any further questions.

        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.