[Mac OS X] Setting font path ? for Ruby and/or Ruby/Graphviz ???

U

Une bévue

i've used rdoc with the option -d, i get the graphviz output images
howver i get this message also :

Diagrams: .Error: Could not find/open font : Arial
..Error: Could not find/open font : Arial


this font is on my computer :
%> ls -al /Library/Fonts gives :
-rw-rw-r-- 1 root admin 0 Mar 21 2005 Arial


then i wonder if their is a env var to setup for ruby ??? and/or for
Graphviz about fonts directory "Library/Fonts" ???
 
L

Logan Capaldo

Le 4 sept. 06 =E0 13:41, Michal Suchanek a =E9crit :


right ))

Hmm I think OS X does something funky with it's fonts:
logan:/Library/Fonts% ls -l | grep Arial
-rw-rw-r-- 1 root admin 0 Mar 20 2005 Arial
-rw-rw-r-- 1 root admin 0 Mar 20 2005 Arial Black
-rw-rw-r-- 1 root admin 0 Mar 20 2005 Arial Narrow
-rw-rw-r-- 1 root admin 0 Mar 20 2005 Arial Rounded Bold
-rw-rw-r-- 1 root admin 38476 Mar 1 2005 ArialHB.ttf
-rw-rw-r-- 1 root admin 38136 Mar 1 2005 ArialHBBold.ttf

logan:/Library/Fonts% ls -l | awk '$5 ~ /^0$/ { print }'
-rw-rw-r-- 1 root admin 0 Mar 20 2005 Andale Mono
-rw-rw-r-- 1 root admin 0 Mar 20 2005 Arial
-rw-rw-r-- 1 root admin 0 Mar 20 2005 Arial Black
-rw-rw-r-- 1 root admin 0 Mar 20 2005 Arial Narrow
-rw-rw-r-- 1 root admin 0 Mar 20 2005 Arial Rounded Bold
-rw-rw-r-- 1 root admin 0 Mar 20 2005 Brush Script
-rw-rw-r-- 1 root admin 0 Mar 20 2005 Comic Sans MS
-rw-rw-r-- 1 root admin 0 Mar 20 2005 Courier New
-rw-rw-r-- 1 root admin 0 Mar 20 2005 Georgia
-rw-rw-r-- 1 root admin 0 Mar 20 2005 Impact
-rw-rw-r-- 1 root admin 0 Mar 20 2005 Times New Roman
-rw-rw-r-- 1 root admin 0 Mar 20 2005 Trebuchet MS
-rw-rw-r-- 1 root admin 0 Mar 20 2005 Verdana
-rw-rw-r-- 1 root admin 0 Mar 20 2005 Webdings
-rw-r--r-- 1 root admin 0 Nov 6 2005 fonts.cache-1

That's a lot of empty fonts, and I know I didn't put them there.
 
P

Paul Lynch

Hmm I think OS X does something funky with it's fonts:
logan:/Library/Fonts% ls -l | grep Arial
-rw-rw-r-- 1 root admin 0 Mar 20 2005 Arial
-rw-rw-r-- 1 root admin 0 Mar 20 2005 Arial Black
-rw-rw-r-- 1 root admin 0 Mar 20 2005 Arial Narrow
-rw-rw-r-- 1 root admin 0 Mar 20 2005 Arial Rounded Bold
-rw-rw-r-- 1 root admin 38476 Mar 1 2005 ArialHB.ttf
-rw-rw-r-- 1 root admin 38136 Mar 1 2005 ArialHBBold.ttf


That's a lot of empty fonts, and I know I didn't put them there.

MacOS X follows legacy Macintosh glitches to its detriment,
sometimes. HFS+ supports forked files, and fonts, for legacy
reasons, put their real data in the invisible data fork. eg:

ls -l /Library/Fonts/Arial
-rw-rw-r-- 1 root admin 0 Mar 20 2005 /Library/Fonts/Arial

ls -l /Library/Fonts/Arial/rsrc
-rw-rw-r-- 1 root admin 317313 Mar 20 2005 /Library/Fonts/Arial/
rsrc

Paul
 
P

Paul Lynch

Le 4 sept. 06 =E0 20:43, Paul Lynch a =E9crit :


ah OK, fine thanxs !

but in this case why ls doesn't see a directory, ie i'd have seen =20
rather :

--^---- directory isn't it ?

Because it isn't a directory, it's a forked file. A file can have =20
many forks, and rsrc is just some sort of alias to the "resource" =20
fork. A directory would have rather different behaviour from a =20
forked file, and overloading the path notation was thought to be the =20
best way to handle it. It's a no-win situation when you think about it.

Paul=
 
U

Une bévue

Paul Lynch said:
Because it isn't a directory, it's a forked file. A file can have
many forks, and rsrc is just some sort of alias to the "resource"
fork. A directory would have rather different behaviour from a
forked file, and overloading the path notation was thought to be the
best way to handle it. It's a no-win situation when you think about it.

OK, but why Graphiz isn't aware of that ?
something to do in order to avoid the error message "font Arial not
found" ???
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,189
Latest member
CryptoTaxSoftware

Latest Threads

Top