[XeTeX] pfaedit
Bruno Voisin
bvoisin at mac.com
Mon Aug 8 09:26:21 CEST 2005
Le 8 août 05 à 02:27, Will Robertson a écrit :
> Once you've installed fontforge, you'll then need something like
> the following in a file called .bash_profile in your home
> directory, which you'll need to create with pico or emacs or vi,
> etc., which contains something like the following:
>
> export DISPLAY=:0
> export PATH=${PATH}:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin:
> $HOME/bin
>
> (These instructions assume that when you type "echo $SHELL" in
> Terminal, you get "/bin/bash". If not, you can tell Terminal to use
> bash in its preferences.)
>
> You'll also have had to install X11.app from Apple, which may have
> taken place when you installed Mac OS X. If you don't have it in /
> Applications/Utilities/, I believe you can install it from
> somewhere in apple.com.
>
> Finally, you should then be able to open the X11 application, then
> go back to Terminal.app and type "fontforge" and be all good.
> Fingers crossed!
In case you're not willing to edit/add configuration files, you can
either:
- Launch FontForge (the current name of PfaEdit) from Terminal, by
typing
open-x11 fontforge
- Launch FontForge from X11 itself, by typing
/usr/local/bin/fontforge
- In X11, go to the menu item Applications > Customize Menu..., and
add an item
Menu Name = FontForge
Command = /usr/local/bin/fontforge
This will add a FontForge item to the Applications menu.
The reason why the command "fontforge" isn't recognized by X11 (so
that you'll have to type the full path /usr/local/bin/fontforge) is
that xterm -- the terminal window in X11 -- doesn't inherit the
default path setting; in technical terms, it's not a login shell.
When the GhostScript i-Packags is installed, and you choose CLI
(command line interface) activation, then /usr/local/bin is added to
the default path by modifying the files /etc/csh.login (for people
whose shell is tcsh) and /etc/profile (for people whose shell is
bash). This affects all accounts for a given Mac, but only affects
Terminal, not X11; hence the command open-x11 to launch X11 processes
from Terminal.
There isn't such easy customization of X11, affecting the xterm
default path for all accounts on a Mac. You would need, account by
account, to create a file ~/.xinitrc, paste there the content of /etc/
X11/xinit/xinitrc and then modify it to add the path /usr/local/bin
(don't ask me what the modification should be, I've no idea). Because
it would need to be made for each and every account on a Mac, this
step has not been added to the installation of the relevant i-Packages.
All this to be taken with a grain of salt, given I'm not at all a X11
specialist; all the above is mainly wisdom pasted from messages by
other people, and I may have misunderstood them.
Hope this helps,
Bruno Voisin
More information about the XeTeX
mailing list