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

Discussion in 'Ruby' started by Une bévue, Sep 4, 2006.

  1. Une bévue

    Une bévue Guest

    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
    Une bévue, Sep 4, 2006
    #1
    1. Advertising

  2. 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.
    Logan Capaldo, Sep 4, 2006
    #2
    1. Advertising

  3. Une bévue

    Paul Lynch Guest

    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
    Paul Lynch, Sep 4, 2006
    #3
  4. Une bévue

    Paul Lynch Guest

    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=
    Paul Lynch, Sep 5, 2006
    #4
  5. Une bévue

    Une bévue Guest

    Paul Lynch <> 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
    Une bévue, Sep 7, 2006
    #5
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. mttc
    Replies:
    2
    Views:
    2,386
    Roedy Green
    Jul 3, 2009
  2. gregoire.lejeune

    [ANN] Ruby-GraphViz

    gregoire.lejeune, Jan 26, 2004, in forum: Ruby
    Replies:
    0
    Views:
    100
    gregoire.lejeune
    Jan 26, 2004
  3. greg

    [ANN] Ruby/GraphViz 0.2.0

    greg, Jun 4, 2004, in forum: Ruby
    Replies:
    0
    Views:
    106
  4. Une bévue
    Replies:
    0
    Views:
    176
    Une bévue
    Sep 4, 2006
  5. Jean-Christophe Le Lann

    Rdoc problem on some gems (like ruby-graphviz)

    Jean-Christophe Le Lann, Oct 30, 2010, in forum: Ruby
    Replies:
    1
    Views:
    222
    Quintus
    Oct 30, 2010
Loading...

Share This Page