News:

Happy New Year!

Main Menu

Text to Path

Started by Visio Guy, January 31, 2025, 09:49:57 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

Visio Guy

Hi Nerds!

I've been wanting to do this for years, and finally revisited it. Visio has no way of converting text into paths, or vectors that can be edited like shapes.

The workaround I've used is to create text in Inkscape, convert it to paths, save as SVG, then import to Visio. Not the simplest of workflows, but it provided results.

The idea is to make a tool, and ultimately a ribbon button that could act on the selected shape, and I've now got the core bits working! I used System.Windows.Drawing (WPF stuff, see System.Windows.FontStyle, FormattedText.BuildGeometry), and ChatGPT 4o gave some hints at how to go about processing stuff. Of course, it wasn't 100% correct, but I was able to interpret its answer and convert stuff to Visio ShapeSheet rows and cells!



For articles, tips and free content, see the Visio Guy Website at http://www.visguy.com
Get my Visio Book! Using Microsoft Visio 2010

Visio Guy

Here'r some samples. Converted vector shapes are on the right (see the colored outlines?  ;D )

That Dot Matrix font is a doozy! Those aren't even circles after conversion, they're 109, 9-row geometry sections, using RelCubBezTo row types!

You cannot view this attachment.
For articles, tips and free content, see the Visio Guy Website at http://www.visguy.com
Get my Visio Book! Using Microsoft Visio 2010

Visio Guy


You cannot view this attachment.
For articles, tips and free content, see the Visio Guy Website at http://www.visguy.com
Get my Visio Book! Using Microsoft Visio 2010

Thomas Winkel

#3
I'm not sure if I understood that correctly. You write text in Visio and choose a font. Your program then traces this with cubic Bézier curves?

Then you can use any shape properties to format the text?
Line color, fill color, gradients, transparency, patterns, sketch, reflection ...

Very cool 8)

Visio Guy

Yes, you understand perfectly! Adobe Illustrator, Inkscape, and similar illustration programs typically have some sort of "text to paths" command to do this. Then you can chop up the shapes and modify letters, in addition to having separate line and fill attributes.

You cannot view this attachment.

For articles, tips and free content, see the Visio Guy Website at http://www.visguy.com
Get my Visio Book! Using Microsoft Visio 2010

Browser ID: smf (possibly_robot)
Templates: 4: index (default), Display (default), GenericControls (default), GenericControls (default).
Sub templates: 6: init, html_above, body_above, main, body_below, html_below.
Language files: 4: index+Modifications.english (default), Post.english (default), Editor.english (default), Drafts.english (default).
Style sheets: 4: index.css, attachments.css, jquery.sceditor.css, responsive.css.
Hooks called: 223 (show)
Files included: 32 - 1207KB. (show)
Memory used: 1078KB.
Tokens: post-login.
Cache hits: 13: 0.00147s for 26,592 bytes (show)
Cache misses: 3: (show)
Queries used: 17.

[Show Queries]