Author Topic: Know your fonts numbers  (Read 7718 times)

0 Members and 1 Guest are viewing this topic.

Yacine

  • Hero Member
  • *****
  • Posts: 2770
Know your fonts numbers
« on: April 03, 2010, 07:57:52 AM »
I wasn't satisfied with my randomized font patterns. They showed too often, those winding symbols and also cyrillic fonts -whilst beautiful  ;) - I didn't want.
The idea was to randomize over a set of fonts, that *I* can define.

Now how to get a list of fonts without coding? Well, Chris showed us a very nice incrementing methode with his box shape (http://www.visguy.com/2009/11/25/super-smart-visio-divided-box-shape/). You basically set your first shape's number to 0, duplicate it by dragging it downwards while holding the control key, then press "F4" until the Font drop down list doesn't show any more fonts. (In my case, some 250 times).

There could be other applications. I honestly don't know my fonts and usually don't need to. But when you start playing with them, you need to get an overview.

W., I know I got a shot too much of Visio again. Can't help.
I mean, no! Get me out of here!
 ;D ;D ;D
« Last Edit: April 03, 2010, 08:17:09 AM by Yacine »
Yacine

Yacine

  • Hero Member
  • *****
  • Posts: 2770
Re: Know your fonts numbers
« Reply #1 on: April 03, 2010, 08:09:49 AM »
.
« Last Edit: April 03, 2010, 08:20:19 AM by Yacine »
Yacine

vojo

  • Hero Member
  • *****
  • Posts: 1595
Re: Know your fonts numbers
« Reply #2 on: April 03, 2010, 09:12:30 PM »
Note....you need to run this periodically since the font list moves around.   Ie today 10=arial....tomorrow 10= supercalifragilisticexpialadosous.

Assuming a shape has font defined explicitly....can necessarily lock it in.
Say shape even had font=guard(10).    since 10 can mean different fonts over time....no guarentee its what you want.

Yacine

  • Hero Member
  • *****
  • Posts: 2770
Re: Know your fonts numbers
« Reply #3 on: April 04, 2010, 03:33:00 AM »
Hi Vojo,
I'm not sure I got you right.
You are not saying that the font number is completely arbitray. Rather, the numbers change, when I add and remove fonts. Isn't it?

But that's OK. When you play whith patterns, your work ends usually up in bitmaps.

By the way, is there a function to get the font's name, instead of it's number?
« Last Edit: April 04, 2010, 06:33:56 AM by Yacine »
Yacine

vojo

  • Hero Member
  • *****
  • Posts: 1595
Re: Know your fonts numbers
« Reply #4 on: April 05, 2010, 03:59:21 PM »
actual numbers dont change....the font they reference changes.

For example....today  76=xxx.....tomorrow 76=yyy

This is true for the same file opened today and tomorrow.

The issue is that if you either load a new font in windows or via surfing the web, a new font is added to your system (because of language or whatever), the implied
order of the fonts is changed.   Visio does not track implied order...just the number used......so back to example

76=xxx
surf the web and a font lower in alphabetic order (bbb) is added so that 4 now = bbb vs yesterday =ccc  (ccc=5 now)
76=yyy

ie numbers are constant...font inserted in the order based on alphabet of font name.

vojo

  • Hero Member
  • *****
  • Posts: 1595
Re: Know your fonts numbers
« Reply #5 on: April 05, 2010, 04:00:05 PM »
no shapesheet function to get or check font name....probably could do it in VBA

JuneTheSecond

  • Hero Member
  • *****
  • Posts: 1027
    • Visio Shapes, Stencils and Sample Drawings
Re: Know your fonts numbers
« Reply #6 on: April 05, 2010, 09:08:34 PM »
Try =FONTTOID("Arial") in Char.Font cell.
It may be limited to Visio 2010 Beta.
« Last Edit: April 05, 2010, 09:41:55 PM by JuneTheSecond »
Best Regards,

Junichi Yoda
http://june.minibird.jp/

Yacine

  • Hero Member
  • *****
  • Posts: 2770
Re: Know your fonts numbers
« Reply #7 on: April 05, 2010, 11:33:32 PM »
Thank you guys,
1. I didn't think about the fonts you get from the internet, you're right.
2) FONTTOID works just fine with V.2007. I'll better do some VBA to get my font names, instead of maltreating Excel anymore.
Yacine