Page Index Toggle Pages: 1 2 [3]  Send TopicPrint
Very Hot Topic (More than 25 Replies) Issue with text on SVG node. (Read 6093 times)
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3176
Joined: Oct 19th, 2005
Re: Issue with text on SVG node.
Reply #30 - Dec 2nd, 2022 at 9:19am
Print Post  
FontWeight support was added to SvgExporter, converting the values to CSS numerical weights. SvgNode recognizes only symbolic 'bold' weight at this time.

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
nullable
Junior Member
**
Offline


I Love MindFusion!

Posts: 86
Joined: Aug 25th, 2022
Re: Issue with text on SVG node.
Reply #31 - Dec 9th, 2022 at 11:18am
Print Post  
Hello, I wanted to check if there is progress in the implementation of "import-as-text" option, because this feature is essential for me.
  
Back to top
 
IP Logged
 
nullable
Junior Member
**
Offline


I Love MindFusion!

Posts: 86
Joined: Aug 25th, 2022
Re: Issue with text on SVG node.
Reply #32 - Dec 16th, 2022 at 6:09am
Print Post  
Hello. I still need "import-as-text" feature. Want to know if you've implemented that.
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3176
Joined: Oct 19th, 2005
Re: Issue with text on SVG node.
Reply #33 - Dec 19th, 2022 at 3:16pm
Print Post  
It should be available for upcoming v3.9 release.

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
nullable
Junior Member
**
Offline


I Love MindFusion!

Posts: 86
Joined: Aug 25th, 2022
Re: Issue with text on SVG node.
Reply #34 - Dec 20th, 2022 at 8:24am
Print Post  
Can you please say ETA of version 3.9 release?
  
Back to top
 
IP Logged
 
nullable
Junior Member
**
Offline


I Love MindFusion!

Posts: 86
Joined: Aug 25th, 2022
Re: Issue with text on SVG node.
Reply #35 - Dec 22nd, 2022 at 10:59am
Print Post  
Also, what about font weights support for SVG importer?
  
Back to top
 
IP Logged
 
nullable
Junior Member
**
Offline


I Love MindFusion!

Posts: 86
Joined: Aug 25th, 2022
Re: Issue with text on SVG node.
Reply #36 - Dec 26th, 2022 at 5:33am
Print Post  
I want to notice that I'm still waiting for your reply.
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3176
Joined: Oct 19th, 2005
Re: Issue with text on SVG node.
Reply #37 - Dec 26th, 2022 at 10:04am
Print Post  
It's done when it's done says our developer; SVG text is not that simple with possible embedded spans etc. Generally we are not marketing this library as an SVG editor and do not owe you any of this. SvgNode was added only to let our users show vector-icons in their flow diagrams.

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3176
Joined: Oct 19th, 2005
Re: Issue with text on SVG node.
Reply #38 - Dec 27th, 2022 at 11:53am
Print Post  
Try new build here -
https://mindfusion.eu/_beta/wpfdiag39.zip

Text rendering is behind a flag for time being, disable static SvgText.DrawAsPath to test it -

Code
Select All
SvgText.DrawAsPath = false;

var defaultBounds = diagram.Bounds;

var text = new TextNode();
text.Bounds = new Rect(55, 55, 50, 20);
text.Text = "test";
diagram.Nodes.Add(text);

var text2 = new TextNode();
text2.Bounds = new Rect(85, 80, 120, 45);
text2.Text = "test1 test2\r\ntest3";
diagram.Nodes.Add(text2);

diagram.ResizeToFitItems(22);

new SvgExporter().Export(diagram, "test_t.svg");
diagram.ClearAll();

diagram.Bounds = defaultBounds;

var svg2 = new SvgContent();
svg2.Parse("test_t.svg");
var svgNode2 = diagram.Factory.CreateSvgNode(
    330, 0, 100, 200, svg2);
svgNode2.Shape = Shapes.Rectangle;
svgNode2.Transparent = true;

var svg3 = new SvgContent();
svg3.Parse("test_t.svg");
var svgNode3 = diagram.Factory.CreateSvgNode(
    110, 0, 100, 200, svg3);
svgNode3.ContentAutoBounds = true;
svgNode3.Shape = Shapes.Rectangle;
svgNode3.Transparent = true;

new SvgExporter().Export(diagram, "test3.svg");
 





We'll try to add font weight parsing in next few days.

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
nullable
Junior Member
**
Offline


I Love MindFusion!

Posts: 86
Joined: Aug 25th, 2022
Re: Issue with text on SVG node.
Reply #39 - Dec 27th, 2022 at 12:54pm
Print Post  
Hello! Now SVG import/export with text works just perfectly, thank you! Smiley
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3176
Joined: Oct 19th, 2005
Re: Issue with text on SVG node.
Reply #40 - Dec 28th, 2022 at 1:19pm
Print Post  
This build parses font-weight values -
https://mindfusion.eu/_beta/wpfdiag39.zip

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
nullable
Junior Member
**
Offline


I Love MindFusion!

Posts: 86
Joined: Aug 25th, 2022
Re: Issue with text on SVG node.
Reply #41 - Dec 28th, 2022 at 1:26pm
Print Post  
This feature is working perfectly as well. Thank you so much for the updates. Roll Eyes
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1 2 [3] 
Send TopicPrint