Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > [Mac OS X] Setting font path ? for Ruby and/or Ruby/Graphviz ???

Reply
Thread Tools

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

 
 
Une bévue
Guest
Posts: n/a
 
      09-04-2006
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" ???
--
une bévue
 
Reply With Quote
 
 
 
 
Logan Capaldo
Guest
Posts: n/a
 
      09-04-2006

On Sep 4, 2006, at 12:57 PM, Yvon Thoraval wrote:

>
> Le 4 sept. 06 =E0 13:41, Michal Suchanek a =E9crit :
>
>> If I read the ls output correctly the font file is empty. Such font
>> can be hardly useful for embedding text into images.

>
> 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.


 
Reply With Quote
 
 
 
 
Paul Lynch
Guest
Posts: n/a
 
      09-04-2006

On 4 Sep 2006, at 19:10, Logan Capaldo wrote:

> 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

 
Reply With Quote
 
Paul Lynch
Guest
Posts: n/a
 
      09-05-2006
On 5 Sep 2006, at 07:47, Yvon Thoraval wrote:

> Le 4 sept. 06 =E0 20:43, Paul Lynch a =E9crit :
>
>> MacOS X follows legacy Macintosh glitches to its detriment, =20
>> sometimes. HFS+ supports forked files, and fonts, for legacy =20
>> 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/=20
>> Arial/rsrc

>
> ah OK, fine thanxs !
>
> but in this case why ls doesn't see a directory, ie i'd have seen =20
> rather :
>
>> drw-rw-r-- 1 root admin 0 Mar 20 2005 /Library/Fonts/Arial

> --^---- 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=

 
Reply With Quote
 
Une bévue
Guest
Posts: n/a
 
      09-07-2006
Paul Lynch <(E-Mail Removed)> wrote:

>
> 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" ???
--
une bévue
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting 'Path' in Windows XP (and path length) DW Computer Support 7 01-03-2011 07:29 PM
Swing Font, it's Java Font? ot native? how install new font? mttc Java 2 07-03-2009 07:29 PM
How to get the text in html tag.like<div...><font...>Text</font></ =?Utf-8?B?Tmlja3k=?= ASP .Net 2 02-20-2005 03:03 PM
Font class, external font files question Karl Hungus ASP .Net 1 02-04-2004 04:26 PM
physical font specified but true type font file not available Michael Glavitsch Java 1 07-15-2003 07:09 PM



Advertisments