[OS X TeX] Re: Lucida from OS 9 to OS X
Bruno Voisin
bvoisin at mac.com
Sat Aug 6 20:15:58 CEST 2005
Le 5 août 05 à 10:57, Bruno Voisin a écrit :
> Regarding the Lucida fonts, there's the general tutorial at <http://
> homepage.mac.com/bkerstetter/tex/fonttutorial-current.html> and a
> number of past threads at the Mac OS X TeX list. A few years back,
> I think, Gary Gray has posted a message describing the conversion
> and installation process in detail, for the Textures Lucida fonts,
> though I cannot locate this message in the list archive.
After some search through my OS X TeX mailbox (pity that search in
Mail cannot accept several criteria, like "From contains Gary L.
Gray" + "Body contains Lucida" + "Body contains Installation"), I've
finally dug a message from 26 March 2002 by Gary Gray, dealing with
the installation of Lucida fonts. It's possible that since then Gary
has posted another updated message, but I've not had the time to look
more extensively.
The pasted message is below. Two precisions to add though:
- It's no longer strictly necessary to use CMacTeX to convert the
LWFN fonts to PFB format. You can simply use the command-line tool
t1unmac included in Gerben Wierda's distribution of TeX. The syntax
is a bit odd: for example, for LucidBri it would be something like
(to be typed in Terminal, after moving to the directory containing
the fonts)
t1unmac -r LucidBri/rsrc lbr.pfb
The "-r .../rsrc" tells t1unmac to extract the corresponding font
resource from the resource fork of the file LucidBri.
- After installing the fonts at the appropriate places, you need to
update the map files. For this, type in sequence in Terminal (with a
return at the end of each line, and you'll be asked for an
administrator password):
sudo updmap --enable Map lucidabr.map
sudo updmap --enable Map lumath.map
sudo updmap --enable Map lucidabr-o.map
sudo updmap --enable Map lumath-o.map
The updating process after each line may take some time (1 or 2
minutes, say, depending on hardware).
It would be nice if somebody someday would write a script doing all
of this automatically (copying all Lucid* fonts from the Classic font
folder to a temporary directory, converting them, renaming them,
putting them at the appropriate places, running updmap). A problem,
though, is that the Classic font folder has its name localized: in
the English OS it is, I think, /System Folder/Fonts/, and in French,
for example, /Dossier Système/Polices/. By localized here, I mean
that the actual directory name is localized, not as in OS X where the
names are always English and it is only the Finder which displays
them as localized, displaying for example /Library as /Bibliothèque
when the language is French.
Hope this helps,
Bruno Voisin
> De : "Gary L. Gray"
> Date : 26 mars 2002 23:44:48 HNEC
> À : TeX on Mac OS X Mailing List
> Objet : Rép : [OS X TeX] Fonts included with Textures?
> Répondre à : "TeX on Mac OS X Mailing List"
>
> On 3/26/02 1:29 PM, "Zachary Davis" wrote:
>
>
>> I had purchased Textures before OS X had been released, when I was
>> just
>> learning TeX. I really like the Lucida Grande font, and would
>> somehow
>> like to include that font in my documents. I have since moved to
>> teTeX
>> in conjunction with TeXShop, and was wondering whether the necessary
>> files to install a Lucida Grande font might be included on the
>> Textures
>> disk I still have lying around. I remember Gary awhile ago posting
>> something to this affect, where he had gotten a Lucida family
>> installed
>> into his teTeX installation.
>>
>
> Here are some details on the installation of the Lucida Bright
> family (I
> assume that is what you are referring to -- if not, I apologize):
>
> [1] Take your existing Lucida fonts and convert them to .pfb files
> using Tom
> Kiffe's conversion utility. You can find it at:
>
> <http://www.kiffe.com/cmactex.html>
>
> You will want to open his "essential" AppleScript "lwfn2pfb script
> txt" in
> the Script Editor and save it as an application so that you can
> drag and
> drop your fonts on it for conversion. This AppleScript will call
> the CMacTeX
> binary "t1utils", so be sure you have that too. After creating the
> AppleScript, drag and drop all 41 of your Lucida fonts onto the
> AppleScript
> and after a few seconds, 41 .pfb files will appear (you will have
> 41 if you
> have the entire Lucida set from Y&Y).
>
> [2] You will now need to rename those new .pfb files. Here is a
> list of the
> the new names and the corresponding old names:
>
> New Old
> === ===
> lbc LucidCalIta
> lbd LucidBriDem
> lbdsc LucidBriSmaDem
> lbdi LucidBriDemIta
> lbh LucidHanIta
> lbi LucidBriIta
> lbki LucidCasIta
> lbkr LucidCas
> lbl LucidBla
> lbma LucidNewMatArr
> lbme LucidNewMatExt
> lbmi LucidNewMatIta
> lbmo LucidNewMatAltIta
> lbms LucidNewMatSym
> lbmsd LucidNewMatSymDem
> lbr LucidBri
> lbrsc LucidBriSma
> lbsl LucidBriObl
> lbtb LucidTypBol
> lbtbo LucidTypBolObl
> lbto LucidTypObl
> lbtr LucidTyp
> lfd LucidFaxDem
> lfdi LucidFaxDemIta
> lfi LucidFaxIta
> lfr LucidFax
> lsb LucidSanBol
> lsbi LucidSanBolIta
> lsd LucidSanDem
> lsdi LucidSanDemIta
> lsi LucidSanIta
> lsr LucidSan
> lstb LucidSanTypBol
> lstbo LucidSanTypBolObl
> lsto LucidSanTypObl
> lstr LucidSanTyp
> lbmad LucidNewMatArrDem
> lbmd LucidNewMatDem
> lbmdi LucidNewMatDemIta
> lbmdo LucidNewMatAltDemIta
> lbmr LucidNewMatRom
>
> Be sure and leave the .pfb extensions on the renamed files.
>
> [3] Once you have renamed the files, then you simply need to put
> them in the
> right place. Put the .pfb files in the following places:
>
> In: ~/Library/texmf/fonts/type1/yandy/lubright
> Put:
> lbd.pfb
> lbdi.pfb
> lbdsc.pfb
> lbi.pfb
> lbr.pfb
> lbrsc.pfb
> lbsl.pfb
>
>
> In: ~/Library/texmf/fonts/type1/yandy/lucida
> Put:
> lbc.pfb
> lbh.pfb
> lbki.pfb
> lbkr.pfb
> lbl.pfb
> lbtb.pfb
> lbtbo.pfb
> lbto.pfb
> lbtr.pfb
>
>
> In: ~/Library/texmf/fonts/type1/yandy/lucidfax
> Put:
> lfd.pfb
> lfdi.pfb
> lfi.pfb
> lfr.pfb
>
>
> In: ~/Library/texmf/fonts/type1/yandy/lucsans
> Put:
> lsb.pfb
> lsbi.pfb
> lsd.pfb
> lsdi.pfb
> lsi.pfb
> lsr.pfb
> lstb.pfb
> lstbo.pfb
> lsto.pfb
> lstr.pfb
>
>
> In: ~/Library/texmf/fonts/type1/yandy/lumath
> Put:
> lbma.pfb
> lbmad.pfb
> lbmd.pfb
> lbmdi.pfb
> lbmdo.pfb
> lbme.pfb
> lbmi.pfb
> lbmo.pfb
> lbmr.pfb
> lbms.pfb
> lbmsd.pfb
>
>
> [4] Now it should work. Simply create a new LaTeX document and include
> something like:
>
> \usepackage[expert]{lucidabr}
>
> and you it should use the Lucida fonts. I know people don't like
> attachments, so here is a nice summary of the options available:
>
> -----------------------------------------------------------------
> Options for the lucidabr package (paraphrased from lucidabr.txt):
> -----------------------------------------------------------------
>
> See lucidabr.txt for details on the package options.
> To get the documentation for the lucidabr package, run TeX
> (or LaTeX) on the file lucidabr.dtx and print the result.
>
> The lucidabr package contains the code to support the Lucida Bright
> and Lucida New Math fonts. You invoke it using
>
> \usepackage[...]{lucidabr}
>
> where the ... indicated optional arguments. This package supports
> several options. The default options are:
>
> [noexpert,lucidascale,mathitalic1,slantedgreek,errorshow]
>
> (*) [noexpert] Lucida Bright Expert fonts *not* available
> (*) [expert] Lucida Bright Expert fonts available (needed for bold
> math)
>
> Special scaling has been set up for Lucida Bright fonts to control
> the relative sizes of text and math fonts.
> The default is to scale, but two options allow you to
> revert to `normal' behaviour, or get even smaller.
>
> (*) [lucidascale]
> (*) [nolucidascale]
> (*) [lucidasmallscale]
>
> Choose style of letters in math. Italic3 is not really italic at all,
> more a roman font with math spacing. Italic2 is not really
> slanted but a different style of italic.
>
> (*) [mathitalic1] % `alternate' math italic (lbmo) default
> (*) [mathitalic2] % original math italic (lbmi)
> (*) [mathitalic3] % upright `math italic' (lbmr)
>
> Choose between slanted and upright lowercase Greek.
> Uppercase Greek is always upright.
>
> (*) [slantedgreek]
> (*) [uprightgreek]
>
> Define extra command names to access:
> uppercase slanted Greek (\varGamma...)
> lowercase upright Greek (\upalpha...)
> Irrespective of whether \alpha is accessing upright or
> slanted Greek alphabet.
>
> (*) [vargreek]
>
> Do not define individual command names to all the AMS
> math symbols (and a few extra Lucida math symbols).
> This makes this package emulate the amsfonts package rather
> than the amssymbl package. It saves a lot of space for smaller
> TeX systems. You can then just define commands for the symbols
> you are going to use.
>
> (*) [noamssymbols]
>
> Font encoding for the operators font.
> Normally this options does not need to be explicitly
> given as the default is to use the current default text
> encoding, so if \usepackage[T1]{fontenc} is used before
> loading this package, T1 encoding will be used.
> These options are similar to the ones provided by the
> mathtime package. Note that when cm fonts are being used
> the OT1 encoding is always used for the operators font
> as it is required to access Greek in that case. However
> Lucida Bright provides upper and lowercase Greek in the math fonts.
>
> (*) [OT1] % TeX text
> (*) [LY1] % TeX 'n ANSI
> (*) [T1] % Cork
>
> (*) [seriftt] % use Lucida Typewriter instead of Lucida Sans
> Typewriter
> (*) [fax] % use Lucida Fax instead of Lucida Bright
> (*) [casual] % Use Lucida Casual instead of Lucida Bright
> (*) [calligraphic] % Use Lucida Calligraphic for italic text
> (*) [handwriting] % Use Lucida Handwriting Italic for italic text
>
> This package makes a lot of font re-assignments. Normally these
> generate warning messages on the terminal, however getting so many
> messages would be distracting, so a further three options control the
> font tracing. Even more control may be obtained by loading the
> tracefnt package.
>
> (*) [errorshow] Only show font *errors* on the terminal.
> Warnings are just sent to the log file. This is the default
> for this package.
>
> (*) [warningshow] Show font warnings on the terminal. This
> corresponds to the usual LaTeX 2e behaviour.
>
> (*) [nofontinfo] Suppress all font warnings, even from the log
> file.
>
>
> Good luck,
>
> Gary
--------------------- 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 Post: <mailto:MacOSX-TeX at email.esm.psu.edu>
More information about the macostex-archives
mailing list