TaskDialog Font?

TaskDialog Font?

PaulCollins7972
Advocate Advocate
1,007 Views
2 Replies
Message 1 of 3

TaskDialog Font?

PaulCollins7972
Advocate
Advocate

Anyone know which font is displayed by the Revit TaskDialog?

 

I have Addins which mix TaskDialog and Windows Forms so it would be good to get a consistant look.

 

I have also noticed that text you see in when designing the form becomes much skinnier when displayed by the Addin in Revit...

 

(I am using Visual Studio Professional 2012 (VB) with Revit 2015)

 

Thanks!

0 Likes
1,008 Views
2 Replies
Replies (2)
Message 2 of 3

PaulCollins7972
Advocate
Advocate

ADN support have now told me that the font used in the Taskdialog is MS Sans Serif.

 

I still have an issue though in that the preview of a form as seen in VS is quite different from that displayed by Revit when running the Add-in. (see attached images) Anyone know if this can be overcome or is it down to trial and error until things look about right.

 

Thanks

0 Likes
Message 3 of 3

schnierer.gabor
Advocate
Advocate

Thanks for sharing that, came useful 5 years later. 😊

For the main instruction I used 

FontFamily="Ms Sans Serif" FontSize="16" Foreground="#FF003296"

Which looks close enough for me.

Use the exact name. Visual studio suggested "Microsoft Sans Serif" which displays a bit bolder. 

The main contents font size is 12 I belive.

0 Likes