Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Custom Font and Link Colour (Read 2344 times)
Santosh
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 28
Joined: Mar 25th, 2015
Custom Font and Link Colour
Aug 14th, 2015 at 9:57am
Print Post  
Hi,

I need to use custom Font for node text("Helvetica Neue", 12px). Also, change the colour of the link connection to "#999".

How to acheive the above  Huh
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Custom Font and Link Colour
Reply #1 - Aug 14th, 2015 at 10:31am
Print Post  
Hi,

Try this:

Code
Select All
node.setFont(
	new MindFusion.Drawing.Font("Helvetica Neue", 4 /*mm*/));
link.setStroke("#999"); 



Font size is specified in current measure unit, i.e. millimeter by default.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Santosh
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 28
Joined: Mar 25th, 2015
Re: Custom Font and Link Colour
Reply #2 - Aug 14th, 2015 at 6:56pm
Print Post  
Thanks Stoyan, that helped  Smiley
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint