Jump to content
Software FX Community

Flash writer and font sizes


Miguel

Recommended Posts

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

Link to comment
Share on other sites

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

 

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

  • 2 weeks later...

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

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...