[OS X TeX] One more time... Lucida Bright installation

Maarten Sneep maarten.sneep at xs4all.nl
Sat Oct 8 14:13:22 CEST 2005


On 7 Oct 2005, at 17:06, Bruno Voisin wrote:

> Le 7 oct. 05 à 16:09, stephenmoye at cox.net a écrit :
>
>> I hate to be tedious, but is there a single, definitive and  
>> authoritative source that details all of the steps necessary to  
>> install Lucida Bright? Are there pre-existing and current tfms,  
>> vfs and fds available? I've got a legal set of the Mac fonts, and  
>> a little unix foreach/t1unmac magic works wonders. A detailed (and  
>> current) list of what the *.pfb files should be named would be  
>> useful, too.
>
> Everything except the PFB font files is already included in teTeX.  
> As to how to rename these PFB files, Gary Gray posted detailed  
> instructions a long time ago. It should be on the list archive  
> somewhere.
>
> Following is a former message from Gary.

[snip]

I reworked his message in a Shell script. If you have the original  
Macintosh release, the following should work, and do all the tedious  
and error-prone work for you.

1 - I've gathered the commands in a script that is attached to this  
message. It will install for the current user (you can edit the  
script to install for all accounts, although I think the difference  
in your case is none). Call the script with the path to the  
'LucidaBright Fonts' directory as its argument (that is, the root  
directory of the Lucida distribution, at least in the latest version  
I've seen). Don't forget to make the script executable (chmod a+x  
script). The script does have a simple help.
2 - There is no step two.

Note that the script requires admin permissions to update the map  
files. To understand teh documentation: you will install the fonts  
using the Y&Y naming scheme.

Maarten

--- begin script, remove this line ---
#!/bin/bash

sourcepath="$1"

if [ -z "$sourcepath" -o ! -d "$sourcepath" ]
then
     appname=`basename $0`
     cat > /dev/stderr <<EOF
Usage: $appname distpath [-user|-local]

distpath is the path to the folder containing the "Outline Fonts"
folder (not the "Outline Fonts" folder itself). In the most recent
distribution I've seen, this was a folder called "LucidaBright Fonts".

Add -user to install for the current user, or -local to install for all
users. Note: to keep things _really_ simple: this _must_ be the second
item on the command line.

At the end of the script the map files will be updated. This requires
administrative access, so be sure to run the script from an admin
account (one that can do sudo).
EOF
     exit 1
fi

if [ -n "$2" -a "$2" = "-local" ]
then
     TEXMFDIR=/usr/local/teTeX/share/texmf.local
     translator="sudo t1unmac --raw --pfb"
     dirmaker="sudo mkdir"
else
     TEXMFDIR=${HOME}/Library/texmf
     translator="t1unmac --raw --pfb"
     dirmaker="mkdir"
fi

pushd "${sourcepath}/Outline Fonts/"

# translate and move the outline fonts to the correct locations.
echo "moving to ${TEXMFDIR}/fonts/type1/yandy/lucida"
$dirmaker -p ${TEXMFDIR}/fonts/type1/yandy/lucida
$translator --output ${TEXMFDIR}/fonts/type1/yandy/lucida/lbc.pfb  
LucidCalIta/rsrc
$translator --output ${TEXMFDIR}/fonts/type1/yandy/lucida/lbh.pfb  
LucidHanIta/rsrc
$translator --output ${TEXMFDIR}/fonts/type1/yandy/lucida/lbki.pfb  
LucidCasIta/rsrc
$translator --output ${TEXMFDIR}/fonts/type1/yandy/lucida/lbkr.pfb  
LucidCas/rsrc
$translator --output ${TEXMFDIR}/fonts/type1/yandy/lucida/lbl.pfb  
LucidBla/rsrc
$translator --output ${TEXMFDIR}/fonts/type1/yandy/lucida/lbtb.pfb  
LucidTypBol/rsrc
$translator --output ${TEXMFDIR}/fonts/type1/yandy/lucida/lbtbo.pfb  
LucidTypBolObl/rsrc
$translator --output ${TEXMFDIR}/fonts/type1/yandy/lucida/lbto.pfb  
LucidTypObl/rsrc
$translator --output ${TEXMFDIR}/fonts/type1/yandy/lucida/lbtr.pfb  
LucidTyp/rsrc

echo "moving to ${TEXMFDIR}/fonts/type1/yandy/lubright"
$dirmaker -p ${TEXMFDIR}/fonts/type1/yandy/lubright
$translator --output ${TEXMFDIR}/fonts/type1/yandy/lubright/lbd.pfb  
LucidBriDem/rsrc
$translator --output ${TEXMFDIR}/fonts/type1/yandy/lubright/lbdsc.pfb  
LucidBriSmaDem/rsrc
$translator --output ${TEXMFDIR}/fonts/type1/yandy/lubright/lbdi.pfb  
LucidBriDemIta/rsrc
$translator --output ${TEXMFDIR}/fonts/type1/yandy/lubright/lbi.pfb  
LucidBriIta/rsrc
$translator --output ${TEXMFDIR}/fonts/type1/yandy/lubright/lbr.pfb  
LucidBri/rsrc
$translator --output ${TEXMFDIR}/fonts/type1/yandy/lubright/lbrsc.pfb  
LucidBriSma/rsrc
$translator --output ${TEXMFDIR}/fonts/type1/yandy/lubright/lbsl.pfb  
LucidBriObl/rsrc

echo "moving to ${TEXMFDIR}/fonts/type1/yandy/lucidfax"
$dirmaker -p ${TEXMFDIR}/fonts/type1/yandy/lucidfax
$translator --output ${TEXMFDIR}/fonts/type1/yandy/lucidfax/lfd.pfb  
LucidFaxDem/rsrc
$translator --output ${TEXMFDIR}/fonts/type1/yandy/lucidfax/lfdi.pfb  
LucidFaxDemIta/rsrc
$translator --output ${TEXMFDIR}/fonts/type1/yandy/lucidfax/lfi.pfb  
LucidFaxIta/rsrc
$translator --output ${TEXMFDIR}/fonts/type1/yandy/lucidfax/lfr.pfb  
LucidFax/rsrc

echo "moving to ${TEXMFDIR}/fonts/type1/yandy/lucsans"
$dirmaker -p ${TEXMFDIR}/fonts/type1/yandy/lucsans
$translator --output ${TEXMFDIR}/fonts/type1/yandy/lucsans/lsb.pfb  
LucidSanBol/rsrc
$translator --output ${TEXMFDIR}/fonts/type1/yandy/lucsans/lsbi.pfb  
LucidSanBolIta/rsrc
$translator --output ${TEXMFDIR}/fonts/type1/yandy/lucsans/lsd.pfb  
LucidSanDem/rsrc
$translator --output ${TEXMFDIR}/fonts/type1/yandy/lucsans/lsdi.pfb  
LucidSanDemIta/rsrc
$translator --output ${TEXMFDIR}/fonts/type1/yandy/lucsans/lsi.pfb  
LucidSanIta/rsrc
$translator --output ${TEXMFDIR}/fonts/type1/yandy/lucsans/lsr.pfb  
LucidSan/rsrc
$translator --output ${TEXMFDIR}/fonts/type1/yandy/lucsans/lstb.pfb  
LucidSanTypBol/rsrc
$translator --output ${TEXMFDIR}/fonts/type1/yandy/lucsans/lstbo.pfb  
LucidSanTypBolObl/rsrc
$translator --output ${TEXMFDIR}/fonts/type1/yandy/lucsans/lsto.pfb  
LucidSanTypObl/rsrc
$translator --output ${TEXMFDIR}/fonts/type1/yandy/lucsans/lstr.pfb  
LucidSanTyp/rsrc

echo "moving to ${TEXMFDIR}/fonts/type1/yandy/lumath"
$dirmaker -p ${TEXMFDIR}/fonts/type1/yandy/lumath
$translator --output ${TEXMFDIR}/fonts/type1/yandy/lumath/lbma.pfb  
LucidNewMatArr/rsrc
$translator --output ${TEXMFDIR}/fonts/type1/yandy/lumath/lbme.pfb  
LucidNewMatExt/rsrc
$translator --output ${TEXMFDIR}/fonts/type1/yandy/lumath/lbmi.pfb  
LucidNewMatIta/rsrc
$translator --output ${TEXMFDIR}/fonts/type1/yandy/lumath/lbmo.pfb  
LucidNewMatAltIta/rsrc
$translator --output ${TEXMFDIR}/fonts/type1/yandy/lumath/lbms.pfb  
LucidNewMatSym/rsrc
$translator --output ${TEXMFDIR}/fonts/type1/yandy/lumath/lbmsd.pfb  
LucidNewMatSymDem/rsrc
$translator --output ${TEXMFDIR}/fonts/type1/yandy/lumath/lbmad.pfb  
LucidNewMatArrDem/rsrc
$translator --output ${TEXMFDIR}/fonts/type1/yandy/lumath/lbmd.pfb  
LucidNewMatDem/rsrc
$translator --output ${TEXMFDIR}/fonts/type1/yandy/lumath/lbmdi.pfb  
LucidNewMatDemIta/rsrc
$translator --output ${TEXMFDIR}/fonts/type1/yandy/lumath/lbmdo.pfb  
LucidNewMatAltDemIta/rsrc
$translator --output ${TEXMFDIR}/fonts/type1/yandy/lumath/lbmr.pfb  
LucidNewMatRom/rsrc

popd

sudo updmap-sys --enable Map=lucidabr.map
sudo updmap-sys --enable Map=lumath.map

# script ends here------------------------- Info --------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
          & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/




More information about the macostex-archives mailing list