Print Page | Close Window

GENERAL: XAML Markup FontSize Pixels/Points

Printed From: Codejock Forums
Category: General
Forum Name: XAML Snippets
Forum Description: Post your XAML snippets here for everyone to enjoy :)
URL: http://forum.codejock.com/forum_posts.asp?TID=10854
Printed Date: 29 April 2024 at 8:57am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: GENERAL: XAML Markup FontSize Pixels/Points
Posted By: jpbro
Subject: GENERAL: XAML Markup FontSize Pixels/Points
Date 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




Replies:
Posted By: Oleg
Date Posted: 02 June 2008 at 1:41am
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


Posted By: tfrancois
Date Posted: 03 June 2008 at 11:56am
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.


Posted By: Oleg
Date Posted: 03 June 2008 at 2:20pm
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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net