diff options
author | pfaedit <pfaedit> | 2005-10-24 03:22:43 +0000 |
---|---|---|
committer | pfaedit <pfaedit> | 2005-10-24 03:22:43 +0000 |
commit | 15c2425b0af1412465e13d8673da89e2d2376240 (patch) | |
tree | e1ae0da99aaa6c6a01d185bdb169b5d4168cc4b9 | |
parent | 08077bc566ccdce881a318d84f988d1374282a53 (diff) |
Add the files used in the mac package (the Resources directory) to cvs.
-rw-r--r-- | mac-Resources/License.rtf | 23 | ||||
-rw-r--r-- | mac-Resources/ReadMe.rtf | 211 | ||||
-rw-r--r-- | mac-Resources/Welcome.rtf | 7 | ||||
-rwxr-xr-x | mac-Resources/postflight | 75 | ||||
-rwxr-xr-x | mac-Resources/preflight | 4 |
5 files changed, 320 insertions, 0 deletions
diff --git a/mac-Resources/License.rtf b/mac-Resources/License.rtf new file mode 100644 index 00000000..6ed0171a --- /dev/null +++ b/mac-Resources/License.rtf @@ -0,0 +1,23 @@ +{\rtf1\mac\ansicpg10000\cocoartf102 +{\fonttbl\f0\fswiss\fcharset77 Helvetica;} +{\colortbl;\red255\green255\blue255;} +\margl1440\margr1440\vieww12000\viewh14400\viewkind0 +\pard\ql\qnatural + +\f0\fs24 \cf0 FontForge is copyright (C) 2000,2001,2002,2003,2004,2005 by George Williams\ +\ +\pard\li160\ql\qnatural +\cf0 Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:\ +\ +\pard\li200\ql\qnatural +\cf0 Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.\ +\ +Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.\ +\ +The name of the author may not be used to endorse or promote products derived from this software without specific prior written permission. \ +\ +THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\ +\pard\ql\qnatural +\cf0 \ +The configure script is subject to the GNU public license. See the file COPYING.\ +}
\ No newline at end of file diff --git a/mac-Resources/ReadMe.rtf b/mac-Resources/ReadMe.rtf new file mode 100644 index 00000000..da8e49a0 --- /dev/null +++ b/mac-Resources/ReadMe.rtf @@ -0,0 +1,211 @@ +{\rtf1\mac\ansicpg10000\cocoartf102 +{\fonttbl\f0\fswiss\fcharset77 Helvetica-Bold;\f1\fswiss\fcharset77 Helvetica;\f2\fmodern\fcharset77 Courier; +} +{\colortbl;\red255\green255\blue255;} +\margl1440\margr1440\vieww12000\viewh14400\viewkind0 +\pard\ql\qnatural + +\f0\b\fs24 \cf0 BEFORE INSTALLATION +\f1\b0 \ + Before you install fontforge under Mac OS/X you should first install the X\ + window system.\ +\ + In 10.3 this was optional software provided by Apple, if it is not\ + already on your system you must insert the third install CD that came\ + with your system and install the X11User package.\ +\ + I think 10.4 installs X11 by default.\ +\ + It is possible to use fontforge without X, but in this case there is no user\ + interface and you are limited to running scripts. (see below for details)\ +\ + X11 (or XDarwnin on old systems) lives in the Utilities folder of the\ + Applications folder.\ +\ + +\f0\b INSTALLATION NOTES: +\f1\b0 \ + Download the PPC package (the sitx file) from\ + http://sourceforge.net/project/showfiles.php?group_id=103338&package_id=111040\ + This should be automatically expanded, and the install started.\ + After the install has completed it should have added a FontForge entry to the X11 Applications menu.\ +\ + If this did not happen automatically, you can do this yourself:\ +\pard\fi500\ql\qnatural +\cf0 Start X11\ +Select Applications->Customize Menu\ +Then press the (Add) button in the dialog which appears\ +Double click in the left-most section of the blank line which just appeared and then type "FontForge"\ +Press the tab key and type "/usr/local/bin/fontforge"\ +Press the tab key again and type "f"\ +Then press (Done)\ +\pard\ql\qnatural +\cf0 \ + If you like to use the command line, you might want to\ + add /usr/local/bin to your PATH environment variable (and\ + /usr/local/share/man to your MANPATH environment variable).\ + If your shell is bash then edit your ~/.bashrc and add\ + PATH=$\{PATH\}:/usr/local/bin ; export PATH\ + MANPATH=$\{MANPATH:-\}:/usr/local/share/man ; export MANPATH\ + At least one person also needed to define DYLD_LIBRARY_PATH to contain\ + /usr/local/lib\ +\ + +\f0\b RUNNING +\f1\b0 \ + Before you can start FontForge you must start X11. It resides in the\ + Utilities folder of the Applications folder. Double click on it.\ +\ + On the X11 menubar is a menu called "Applications". Click on this.\ + You should see an entry for FontForge (if you do not, reread the\ + previous section). Click on this.\ + FontForge will start and provide you with a font-file browser, which\ + also includes the ability to create a new font.\ +\ + +\f0\b BUILDING +\f1\b0 \ + Just download the file fontforge_full-*.tgz which you will find on\ + +\f2 http://fontforge.sourceforge.net/index.html#source\ + +\f1 Move it somewhere appropriate (/usr/local/src perhaps?) and type:\ + +\f2 $ gunzip fontforge_full-*.tgz ; tar xf fontforge_full-*.tar\ + $ cd fontforge*\ + $ configure\ + $ make\ + $ sudo make install\ + +\f1 \ +\pard\ql\qnatural + +\f0\b\fs20 \cf0 More complex installations\ +\pard\ql\qnatural + +\f1\b0\fs24 \cf0 "make install" will also install a few other things which are not part of\ + the standard package, but which are useful for some people.\ + CIDMAPS:\ + If you are going to be editing CID keyed fonts you should also down-\ + load my cidmap files from\ + +\f2 http://fontforge.sourceforge.net/cidmaps.tgz\ + +\f1 put that file in the same place as you put fontforge_full*.tgz, then\ + +\f2 $ mkdir -p fontforge/cidmaps\ + $ mv cidmaps.tgz fontforge/cidmaps\ + $ cd fontforge/cidmaps\ + $ gunzip *.tgz ; tar xf *.tar\ + $ cd ../..\ + +\f1 And then proceed to do the normal install.\ + Or install them manually:\ + +\f2 # mkdir -p /usr/local/share/fontforge\ + # mv fontforge/cidmaps/* /usr/local/share/fontforge\ + +\f1 +\f0\b DOCUMENTATION:\ + +\f1\b0 You can choose to install FontForge's documentation on your system, then\ + pressing the [Help] or [F1] key within FontForge will go to the local\ + docs rather than those on the web.\ + Download the doc bundle from\ + +\f2 http://fontforge.sourceforge.net/index.html#docs\ + +\f1 Then (assuming you have not changed the install prefix)\ + +\f2 # mkdir -p /usr/local/share/doc/fontforge\ + # mv fontforge_htdocs-*.tgz /usr/local/share/doc/fontforge\ + # cd /usr/local/share/doc/fontforge\ + # gunzip *.tgz; tar xf *.tar\ + +\f1 \ + +\f0\b BUILDING without X11\ + +\f1\b0 FontForge can be built without X11. You will probably only want to do this\ + if your system lacks X (in which case configure should figure that out and\ + do it automagically). But if, for some strange reason you wish to build a\ + non-X version on a machine with X type:\ + +\f2 $ configure --without-x\ + +\f1 during the build process instead of "$ configure" \ + +\f0\b \ +RUNNING from the command line\ + +\f1\b0 Before running FontForge you must start X11. It lives in the Applications\ + folder, and you start it by double clicking on it.\ + You can start fontforge either from one of the xterms it creates, or from a \ + Terminal window. If you start from a Terminal window you must first type:\ + +\f2 $ DISPLAY=:0 ; export DISPLAY\ +\ +$ fontforge -new\ + +\f1 Creates a new font\ + +\f2 $ fontforge -nosplash\ + +\f1 (No splash screen in case you have a very slow X connection)\ + +\f2 $ fontforge font.pfa font2.pfb font3.ttf font4.otf font4.sfd\ + +\f1 Opens those fonts (sfd files are fontforge's own spline font database files)\ + +\f2 $ fontforge +\f1 \ + Brings up a file picker dlg.\ + +\f2 $ fontforge -script script-file [script arguments]\ + +\f1 Starts fontforge up without bringing up any windows. It will run the script-file\ + (passing it any other arguments given on the command line) and then exit.\ +\ +The Control & Option keys must be used for invoking menu items. If you try\ +to use Cmd-Q (rather than Cntl-Q) you will quit out of X11, and not just\ +fontforge.\ +\ + +\f0\b CAVEATS\ + +\f1\b0 1) FontForge does not conform to Apple's Human Interface Guidelines, and never\ + will.\ +\ +Please report any bugs to\ + +\f2 fontforge-devel@lists.sourceforge.net +\f1 \ +\ + +\f0\b DOCUMENTATION\ + +\f1\b0 +\f2 http://fontforge.sourceforge.net/overview.html\ + +\f1 \ + +\f0\b FONTS UNDER Mac OS/X +\f1\b0 \ + Macintosh fonts live in /Library/Fonts, /System/Library/Fonts or\ + ~/Library/Fonts. On Mac OS/X FontForge can edit .dfont and resource fork \ + fonts. On other systems FontForge can only edit Mac .dfonts (the concept\ + of a resource fork is Mac specific).\ +\ + (X11 fonts on the mac are completely seperate from the mac fonts. \ + they reside somewhere in the X tree).\ +\ + +\f0\b FONTS UNDER Mac OS/9 +\f1\b0 \ + Note Bene: As far as I know FontForge has not been ported to Mac OS/9 (or 8 or 7)\ +\ + Fonts live in :System Folder:Fonts: They are stored in resource forks, which\ + means that if you want to work with them you must first wrap them up with \ + either macbinary or binhex (Fetch may be used to do either conversion as you\ + transfer the font to a different system to edit it).\ +}
\ No newline at end of file diff --git a/mac-Resources/Welcome.rtf b/mac-Resources/Welcome.rtf new file mode 100644 index 00000000..3e4275f7 --- /dev/null +++ b/mac-Resources/Welcome.rtf @@ -0,0 +1,7 @@ +{\rtf1\mac\ansicpg10000\cocoartf102 +{\fonttbl\f0\fswiss\fcharset77 Helvetica;} +{\colortbl;\red255\green255\blue255;} +\margl1440\margr1440\vieww12000\viewh14400\viewkind0 +\pard\ql\qnatural + +\f0\fs24 \cf0 This is FontForge, a PostScript, TrueType, OpenType, SVG, CFF, and Multi Master font editor.}
\ No newline at end of file diff --git a/mac-Resources/postflight b/mac-Resources/postflight new file mode 100755 index 00000000..ade22b7d --- /dev/null +++ b/mac-Resources/postflight @@ -0,0 +1,75 @@ +#!/bin/bash +#cd /usr/local/lib +#ln -s libgdraw.1.*.*.dylib libgdraw.1.dylib +#ln -s libgdraw.*.*.*.dylib libgdraw.dylib +#ln -s libgunicode.1.*.*.dylib libgunicode.1.dylib +#ln -s libgunicode.*.*.*.dylib libgunicode.dylib +#Mac OS/X 10.1 did not have plutil +if test -d ~/Library/Preferences -a -e /usr/bin/plutil ; then + if test \! -e ~/Library/Preferences/com.apple.x11.plist ; then + cat <<EOF >~/Library/Preferences/com.apple.x11.plist +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> +<plist version="1.0"> +<dict> + <key>apps_menu</key> + <array> + <array> + <string>Terminal</string> + <string>xterm</string> + <string>n</string> + </array> + <array> + <string>FontForge</string> + <string>/usr/local/bin/fontforge</string> + <string>f</string> + </array> + </array> +</dict> +</plist> +EOF + plutil -convert binary1 ~/Library/Preferences/com.apple.x11.plist + elif grep -q fontforge ~/Library/Preferences/com.apple.x11.plist ; then + cat </dev/null >/dev/null +# It's already in the menu, no need to add it + else + if grep -q "xml version=" ~/Library/Preferences/com.apple.x11.plist ; then +# It's already in xml format + cp ~/Library/Preferences/com.apple.x11.plist /tmp/x11.xml + else + plutil -convert xml1 -o /tmp/x11.xml ~/Library/Preferences/com.apple.x11.plist + fi + if grep -q apps_menu ~/Library/Preferences/com.apple.x11.plist ; then + cat >/tmp/fontforge-sed-script <<EOF +/apps_menu/ { N +a \\ + <array>\\ + <string>FontForge</string>\\ + <string>/usr/local/bin/fontforge</string>\\ + <string>f</string>\\ + </array> +} +EOF + else + cat >/tmp/fontforge-sed-script <<EOF +/<dict/ a \\ + <key>apps_menu</key>\\ + <array>\\ + <array>\\ + <string>Terminal</string>\\ + <string>xterm</string>\\ + <string>n</string>\\ + </array>\\ + <array>\\ + <string>FontForge</string>\\ + <string>/usr/local/bin/fontforge</string>\\ + <string>f</string>\\ + </array>\\ + </array> +EOF + fi + sed -f /tmp/fontforge-sed-script /tmp/x11.xml >/tmp/x11_1.xml + plutil -convert binary1 -o ~/Library/Preferences/com.apple.x11.plist /tmp/x11_1.xml + rm -f /tmp/x11_1.xml /tmp/fontforge-sed-script /tmp/x11.xml + fi +fi diff --git a/mac-Resources/preflight b/mac-Resources/preflight new file mode 100755 index 00000000..b05c3d8b --- /dev/null +++ b/mac-Resources/preflight @@ -0,0 +1,4 @@ +#!/bin/sh +mkdir -p /usr/local/lib +cd /usr/local/lib +sh -c "rm -f libgunicode*.dylib libgdraw*.dylib" |