Codejock Forums Homepage
Forum Home Forum Home > General > XAML Snippets
  New Posts New Posts RSS Feed - GENERAL: XAML Markup FontSize Pixels/Points
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

GENERAL: XAML Markup FontSize Pixels/Points

 Post Reply Post Reply
Author
Message
jpbro View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 January 2007
Status: Offline
Points: 1354
Post Options Post Options   Thanks (0) Thanks(0)   Quote jpbro Quote  Post ReplyReply Direct Link To This Post Topic: GENERAL: XAML Markup FontSize Pixels/Points
    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

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
tfrancois View Drop Down
Groupie
Groupie


Joined: 21 August 2007
Status: Offline
Points: 78
Post Options Post Options   Thanks (0) Thanks(0)   Quote tfrancois Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.125 seconds.