Skip to main content
Home Forums Silverlight Programming Programming with .NET - General Silverlight -> Verdana is not the same as Windows Form -> Verdana ?
2 replies. Latest Post by Silverlight Web Developer on June 29, 2009.
(0)
Silverli...
Member
76 points
313 Posts
06-26-2009 7:39 PM |
This might be a small detail but when it comes to Fonts on and in controls it is quite sensitive.
I have put this textBox like this:
<
The standard Height for a textBox in Windows Forms is 20. When I put this height like above, the "SomeText" in the textBox isn´t excactly in the middle of the textbox. The text is a little bit down wich looks a little weird.
The thing is that I dont want to make the textBox Height larger to compensate for this as it will be to high.
Also when comparing the Same font "Verdana" from Windows Form and Silverlights Verdana, the font differ, it does not look the same. It is much more "clearer" in the Windows Form and in silverlight it looks "Crispy" and not very clear.
I wonder for both these things that is happening. I am doing an application and is very dependent that a user will recognice the environment from Windows Forms.
SharpGIS
Contributor
3387 points
611 Posts
06-26-2009 11:19 PM |
Don't set the height. The height should then automatically fit to the contents. The different layout is because Silverlight does subpixel rendering. Windows form cannot do this.
06-29-2009 7:08 PM |
Thanks ShapGIS,
Then I understand. I took the height away and it adjusted as you said.