Wednesday, March 25, 2009 5:02 PM
hoop
Font Sizes in Intellipad
Tomas Restrepo tweeted about notable font size differences in Intellipad compared to Visual Studio.
Intellipad uses a text editor built on the Windows Presentation Foundation (WPF). In WPF, font size is a numeric double measured in device-independent units (1/96th inch). The January CTP of Intellipad doesn’t use the WPF FontSizeConverter to parse font sizes so Intellipad defaults to this unit. Visual studio uses points (1pt = 96/72)px.
We hope to have this resolved in the future so that the FontSize property on a ClassificationFormat can be specified in any of the following formats:
- px (default) is device-independent units (1/96th inch per unit)
- in is inches; 1in==96px
- cm is centimeters; 1cm==(96/2.54) px
- pt is points; 1pt==(96/72) px
For now, a little math is necessary.
-hoop