Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Set font family instead of particular font (Read 1143 times)
Anna Malashkina
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 26
Joined: Sep 22nd, 2019
Set font family instead of particular font
Sep 23rd, 2019 at 2:18pm
Print Post  
Hi all,

is it possible not to set particular font to a diagram element, but to set the whole font family?
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Online


tech.support

Posts: 3378
Joined: Oct 19th, 2005
Re: Set font family instead of particular font
Reply #1 - Sep 24th, 2019 at 6:05am
Print Post  
You should be able to use serif / sans-serif etc as font names if that's what you mean -

e.node.setFont(new Font('serif', 6));

CSS font fallback rules might work too if you pass comma delimited list of names instead. The Canvas API supports them according to MDN and the diagram sets the canvas.font as a style + size + name string.

Regards,
Slavcho
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint