Miguel Posted July 18, 2007 Report Share Posted July 18, 2007 Hi, It looks like the font sizes in the Flash control are different depending on what server we deploy the web application. Are the font sizes linked to the DPI setting of the computer where ChartFX is running? Is there a way to get the font sizes the same no matter on what server we deploy the application? Thanks in advance for your help. Miguel Quote Link to comment Share on other sites More sharing options...
Frank Posted July 18, 2007 Report Share Posted July 18, 2007 Is this using the defalt font or are you setting a font to the chart? Quote Link to comment Share on other sites More sharing options...
Miguel Posted July 18, 2007 Author Report Share Posted July 18, 2007 No, we are setting the different fonts using the following syntax: .Font = New Font("Arial", 7) Should we be specifying a different GraphicsUnit? Thanks. Miguel Quote Link to comment Share on other sites More sharing options...
JuanC Posted July 19, 2007 Report Share Posted July 19, 2007 When you create a font with the specified constructor you are using GraphicsUnit.Point. The behavior where the font sizes depend on the machine DPI is expected because you are specifying the font in points (72th of a logical inch). Note that if you specify fonts in points our image generation will also be machine DPI dependent. Setting the font in Pixels will make the image independent of the DPI of the server but there is a bug in the current public builds of the Flash Writer that will ignore such settings, we have fixed this issue and it will be included in our next service pack. If you are experiencing this issue you can contact support at softwarefx dot com to request an interim build. Regards, JuanC Quote Link to comment Share on other sites More sharing options...
Miguel Posted July 19, 2007 Author Report Share Posted July 19, 2007 Thanks a lot for the information, you guys do an fantastic job in this forum. We have tried Pixel, but it does not look very nice in Flash, and some labels get truncated. So for now we will keep using Point and live with the size difference. Thanks. Miguel Quote Link to comment Share on other sites More sharing options...
JuanC Posted July 20, 2007 Report Share Posted July 20, 2007 Miguel, the labels get truncated because ChartFX is calculating the required size (e.g. for the Y axis) using the right font but then the Flash writer is generating the flash content using the wrong size. This has been fixed and we can provide a hotfix if needed. Regards, JuanC Quote Link to comment Share on other sites More sharing options...
adrian.carr Posted August 1, 2007 Report Share Posted August 1, 2007 Juan, I have the trial version of ChartFX.WebForms - not Flash. I'm rendering a Gantt chart as an image with horizontal labels on the inverted Y-axis. I'm increasing the default font size and this causes the final label to be truncated. Any suggestion as to what I can do about this. Regards Adrian Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.