Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

if i make a label and set the font into bold, strangely the last letters in the label shrink.... if i make the text longer, only the last letters shrink, the one in the middle not anymore....

 

see pictures :

labelshrink.jpg for .net

 

to compare labelshrink2.jpg in VBA (Excel)

 

any idea...?

Posted
There must be a slight variation in the way the label renders fonts in .Net vs VBA. An interesting find, though I never noticed it until you pointed it out. It seems that it bolds in place without regard for the location of letters while the VBA lable keeps a strict pixel distance between letters no matter whether they are bold or not. Interesting and annoying for you, trying to make the best program you can, but certianly not a show stopper.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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