Jump to content
Software FX Community

Re: CFX98: Font does not scale when Paint() is called?


User (Legacy)
 Share

Recommended Posts

Thanks James,

I have already solved the problem. Howeve, I think that

MM_TEXT should not be used for that. It's better

to work in the device independent manner.

Today, I have sent the working example to Francisco

Pardon. I have released the source for whatever purpose,

but I think that someone competent should look at it

before released publicly.

See you,

Petr

James Beauchamp wrote in .

[...]

>I had exactly the same problem I think you are having -- that is the graph

>bars, pies etc show fine but the fonts look incredibly small.

>

>I solved it by changing the mapping mode before using the paint method.

>

>eg

>

>// Change the mapping mode to text

>iMapMode = SetMapMode( hDC, MM_TEXT )

>// call paint here

>// then change the mapping mode back to whatever it was

>SetMapMode(hDC,iMapMode)

[...]

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.

 Share

×
×
  • Create New...