Visio Guy

Visio Discussions => General Visio => Topic started by: lizat on July 03, 2020, 09:29:03 AM

Title: Master Typeface is not honoured in the shape once dropped
Post by: lizat on July 03, 2020, 09:29:03 AM
I have a stencil where all the shapes use Comic Sans, however when I drop a shape on the canvas that is changed to Calibri. In fact i don't want Comic Sans so I changed one of the master shapes to use another typeface but it still is not honoured. Do I need to add some sort of 'guard action in the shape sheet?

Thank you.
Title: Re: Master Typeface is not honoured in the shape once dropped
Post by: vojo on July 03, 2020, 12:20:14 PM
is comic sans installed on the system (system using the stencil is different from system creating the stencil)?
Title: Re: Master Typeface is not honoured in the shape once dropped
Post by: lizat on July 06, 2020, 10:03:02 AM
yes, and i can change manually. It's just when first dropped it does this.
Title: Re: Master Typeface is not honoured in the shape once dropped
Post by: Surrogate on July 06, 2020, 11:05:36 AM
Yes, you can use one of these font properties (https://shapesheet-kb.github.io/en/pages/categories/Fonts.htm).
For example:
Code
Guard(Font("Tahoma"))
Title: Re: Master Typeface is not honoured in the shape once dropped
Post by: Nikolay on July 06, 2020, 12:53:05 PM
As far as I know, "GUARD" protects things only from user changes. I.e. it will not allow user to modify the font.
I doubt it can stop Visio from doing whatever it wants to do.

I would try to investigate, why the font is "automatically changed" when you drop a shape. This does not happen normally.
Maybe you have a theme selected that enforces "Calibri" for all shapes that do not support theming?
Title: Re: Master Typeface is not honoured in the shape once dropped
Post by: vojo on July 06, 2020, 02:51:05 PM
guard also seems to make sure visio uses the formula included.

shape.1!pinx = 20mm

shape.2!pinx = shape.1!pinx + 10mm = 1733 mm         // and oh by the way, it seems to trash multiple pages in the file
                                                                                  // took 60 minutes to get it back to operational

shape.2!pinx = guard(shape.1!pinx + 10mm) = 30mm   // all worked as expected...I usually do it this way but forget on
                                                                                  //on one child shape...launch codes issued, planet destroyed ;-)


RE fonts:   Please check the font desired is installed in the system
                before I think 2010, font was time to a relative index number for all fonts in the system
                (my font =12 might be arieal...but your font = 12 might be Calabria)

               afet 2010, fonts were some sort of absolute index....so if your font is not in target system, not sure what it does
Title: Re: Master Typeface is not honoured in the shape once dropped
Post by: Surrogate on July 07, 2020, 02:09:18 AM
@Nikolay, do you remember this thread (https://www.translatetheweb.com/?ref=TVert&from=&to=en&a=https%3A%2F%2Fvisio.getbb.ru%2Fviewtopic.php%3Ff%3D3%26t%3D1362%26p%3D12468) in Russian Visio forum ?
But there user had problem with change font from Arial (default font before Visio 2007) to Calibri (after 2007)