GENERAL: XAML Markup FontSize Pixels/Points |
Post Reply |
Author | |
jpbro
Senior Member Joined: 12 January 2007 Status: Offline Points: 1355 |
Post Options
Thanks(0)
Posted: 31 May 2008 at 5:34pm |
When setting the font size in markup (for example <TextBlock FontSize="8pt">Something</TextBlock>) there doesn't seem to be any difference between points (pt) and pixels (px), even though markup controls seem to accept them both. This means that in order to match the rest of the UI in my app that uses Segoe UI at 8pt, I have to set the markup to 11px (as 8pt is much too small).
What I don't know is how setting the font size in PX instead of PT might affect things when 1) changing to different fonts, or 2) changing the system DPI. Is this the expected behaviour for Markup/XAML...Should PT and PX really be interpreted the same? Or am I doing something wrong? Thanks. |
|
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3 Language: Visual Basic 6.0 SP6 |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hello,
Thanks, indeed now "pt" and "px" are ignored and used always "px" . But I see Micorosoft's XAML is support it, so we will add it for 12.0 release. thanks.
btw now if you don't specify any size, will be used default font you have for Label...
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
tfrancois
Groupie Joined: 21 August 2007 Status: Offline Points: 78 |
Post Options
Thanks(0)
|
Oleg,
Do you mean that this fix will be added to the NEXT release of v12.x or did u mean this functionality exists in the current 12.0 release? I have the same issue so I'm curious.
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
"pt", "px" (also "cm" and "in") was not supported in 12.0.0 version and added for comming 12.0.1.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |