Jump to content
Software FX Community

paint method font scaling problem


Neoteny

Recommended Posts

Hi,

 I'm trying to include a chart in print output, using the paint method. I have the following problem:

 When I leave the font of chart objects (axes,titles...) 'untouched' everything is fine. The chart prints wysiwyg. However, when I change the font of one or more of the chart objects, the fonts on the print output become much smaller than on the screen (unreadable). They don't even come close to the point size I specified. I tried to work around this problem by adjusting the size of the fonts prior to printing and restoring the size after printing, but I can't discover the scaling factor that I should use (I fiddled around with the twipstopixel values of screen and printer, but that's not it).

 Could somebody enlighten me?

Link to comment
Share on other sites

  • 2 weeks later...

Sorry for the late reply, doesn't matter which style i use (print or normal, it's all the same...). I did find a workaround though:

For every font in the ChartFX object model I do the following just prior to calling the paint method (example is for legendbox font):

dim dSize as double

dSize = Chart1.LegendBoxObj.Font.Size

Chart1.LegendBoxObj.Font.Size = dSize

As you can see, this looks ridiculous, but it somehow triggers something that makes the font scale correctly.

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...