BB code in posts seems to be working again!
I haven't turned on every single tag, so please let me know if there are any that are used/needed but not activated.

Main Menu

how to list fonts used in my VSDX?

Started by sunnyimran, April 25, 2020, 06:40:37 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.


Hi there,

I have a visio drawing containing 32 pages. there are a few textboxes and rectangle shapes with text. some of those rectangle are used to display barcode.

Q. Is there a ways to get a list of all fonts used in my VSDX drawing. fonts relating to textboxes and shapes that contain text ?



OK I got it the hard way.

I opened my VSDX file as XML and beneath hierarchy I found Page..XML files. each represents the page on vsdx. This file have entries for all drawing objects used in that page including its font name

I aggregated a complete list of fonts by finding and filtering "fonts" word in each XML

that's the way I did it !!


I did not opened xml for find fonts in vsdx-document. There used font's named stored as font IDs or font names?

In other thread you can find my post. Where i write how font stored in ShapeSheet.


There is a lot of stuff buried in XML.
I found my required font info by searching/filtering and lot of manual work observing the XML

shape-sheet is obvious way when working inside visio (Main app is executing) while XML can be observed without even touching visio App.

you are right each registered font has an ID that is registered by OS and becomes part of system enumeration entity means any app can call a font by that ID. But I think font ID will be different on different PC/different OS. I am sort of sure on this but not yet confirmed.

I am attaching a portion of XML that's how a shape is represented in XML of a Visio page. There is a lot of stuff above this portion and a lot more below this portion. but searching for keyword 'font' returned similar portions

Please have a look at attachment 

Actually I was looking for a VBA script module that will go through all shapes in all pages of current drawing and then list out the fonts that are in use in this drawing. anyways at the moment I got it inside XML. Some other time I will try to getting it through VBA script.


As an idea to get the list of fonts:

- Save your Visio file to PDF.
- Open the PDF with Adobe Reader, go to Properties => Fonts. This should show you all fonts used in the drawing.

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: 218 (show)
Files included: 34 - 1306KB. (show)
Memory used: 1070KB.
Tokens: post-login.
Cache hits: 13: 0.00137s for 26,767 bytes (show)
Cache misses: 2: (show)
Queries used: 16.

[Show Queries]