Changes

Jump to navigation Jump to search
6,071 bytes added ,  09:33, 12 October 2011
Added a note about Lucida being a commercial (although cheap) font.
< [[Main Page]] | [[Fonts]] >
== Installation of Lucida font provided by TUG == NB. The lucidabr and lucida packages on CTAN are free, but the Lucida fontsare not: you must order them from TUG or another source to actuallytypeset anything in Lucida. The TUG Lucida web pages explain thedetails -- see [http://tug.org/store/lucida/ TUG's Lucida page]. {{note|On October 12, 2011, Hans mentioned that otf package of these fonts is imminent and thus it is better to wait for that and forget about the type1 versions.}} === Installation === * extract [http://www.ctan.org/tex-archive/install/fonts/psfonts/bh/lucida.zip CTAN/install/fonts/psfonts/bh/lucida.zip] into <code>texmf-fonts</code> (or <code>texmf-local</code>)* copy all <code>*.pfb</code> files into <code>texmf-fonts/fonts/type1/bh/lucida</code>* run <code>mktexlsr</code> and <code>mtxrun --generate</code> === Usage === In MKII:<texcode>\usetypescript[lucida][ec]\setupbodyfont[lucida]</texcode> In MKIV:<texcode>\setupbodyfont[lucida]</texcode> == Old instructions == The instructions below might be outdated. If the method above works for you there is no need to follow the instructions below. If the instructions above don't work for you, please report on the mailing list. Metric files for support for LaTeX can be found on:* http://www.ctan.org/tex-archive/install/fonts/psfonts/bh/ === Installation of YandY+TUG Lucida Bright fonts ===
''according to Sytse Knypstra''
<ol>
<li> Install lucida fonts (unzip to e.g. texmf-local tree)</li>
</li>
<li> Copy all lucida related .afm and .pfb files to d:\temp
</li>
<texcode>
\lucida{10pt}
</texcode>
</li>
<li>
It seems there is a bug in math-lbr, the bigl, bigr ans so on are really BIG (huge even) when used with lucida.
 
math-lbr says
<texcode>
\def\LBRbig {\@@dobig{8.20}}
\def\LBRBig {\@@dobig{10.80}}
\def\LBRbigg {\@@dobig{13.42}}
\def\LBRBigg {\@@dobig{16.03}}
\def\LBRbiggg{\@@dobig{17.72}}
\def\LBRBiggg{\@@dobig{21.25}}
</texcode>
You can replace by
<texcode>
\def\LBRbig {\@@dobig{0.920}}
\def\LBRBig {\@@dobig{1.080}}
\def\LBRbigg {\@@dobig{1.342}}
\def\LBRBigg {\@@dobig{1.603}}
\def\LBRbiggg{\@@dobig{1.772}}
\def\LBRBiggg{\@@dobig{2.125}}
</texcode>
</li>
</ol>
=== Installation of B&H-flavoured Lucida Bright fonts ===
''Renaud Aubin''
</li>
</ul>
 
 
=== Installing Free Lucida fonts that come with Java JRE ===
If you happen to use Java you might have noticed that it comes with Lucida. Assuming you downloaded the jdk-6u6-linux-x64.bin and extracted it to /opt
 
<texcode>
$ tree /opt/jdk1.6.0_06/jre/lib/fonts/
/opt/jdk1.6.0_06/jre/lib/fonts/
|-- LucidaBrightDemiBold.ttf
|-- LucidaBrightDemiItalic.ttf
|-- LucidaBrightItalic.ttf
|-- LucidaBrightRegular.ttf
|-- LucidaSansDemiBold.ttf
|-- LucidaSansRegular.ttf
|-- LucidaTypewriterBold.ttf
|-- LucidaTypewriterRegular.ttf
`-- fonts.dir
 
0 directories, 9 files
</texcode>
 
and
 
<texcode>
$ tree /opt/jdk1.6.0_06/jre/lib/oblique-fonts/
/opt/jdk1.6.0_06/jre/lib/oblique-fonts/
|-- LucidaSansDemiOblique.ttf
|-- LucidaSansOblique.ttf
|-- LucidaTypewriterBoldOblique.ttf
|-- LucidaTypewriterOblique.ttf
`-- fonts.dir
 
0 directories, 5 files
</texcode>
 
Place the *.ttf files in a dir---you might want to rename the files such that it no longer has uppercase letters---then install the fonts with the following command.
 
<texcode>
su -c 'texfont --makepath --install --vendor=bandh --co=lucida --show'
</texcode>
 
You can see if the installation was successful by previewing the resulting pdf, namely texnansi-bandh-lucida.pdf.
 
Save this with the name type-lucida.tex
 
<texcode>
\usetypescriptfile[type-lucida]
 
% how to use
% \usetypescriptfile[type-lucida]
% \usetypescript[Lucida][texnansi]
% \setupbodyfont[MyLucida,10pt]
 
\loadmapfile[texnansi-bandh-lucida.map]
 
\starttypescript [serif] [lucida] [texnansi]
\definefontsynonym[LucidaBright-Demi][texnansi-lucidabrightdemibold][encoding=texnansi]
\definefontsynonym[LucidaBright-DemiItalic][texnansi-lucidabrightdemiitalic][encoding=texnansi]
\definefontsynonym[LucidaBright-Italic][texnansi-lucidabrightitalic][encoding=texnansi]
\definefontsynonym[LucidaBright][texnansi-lucidabrightregular][encoding=texnansi]
\stoptypescript
 
\starttypescript [sans] [lucida] [texnansi]
\definefontsynonym[LucidaSans-Demi][texnansi-lucidasansdemibold][encoding=texnansi]
\definefontsynonym[LucidaSans-DemiOblique][texnansi-lucidasansdemioblique][encoding=texnansi]
\definefontsynonym[LucidaSans-Oblique][texnansi-lucidasansoblique][encoding=texnansi]
\definefontsynonym[LucidaSans][texnansi-lucidasansregular][encoding=texnansi]
\stoptypescript
 
\starttypescript [mono] [lucida] [texnansi]
\definefontsynonym[LucidaSans-TypewriterBold][texnansi-lucidatypewriterbold][encoding=texnansi]
\definefontsynonym[LucidaSans-TypewriterBoldOblique][texnansi-lucidayypewriterboldoblique][encoding=texnansi]
\definefontsynonym[LucidaSans-TypewriterOblique][texnansi-lucidatypewriteroblique][encoding=texnansi]
\definefontsynonym[LucidaSans-Typewriter][texnansi-lucidatypewriterregular][encoding=texnansi]
\stoptypescript
 
\starttypescript [serif] [lucida] [name]
\usetypescript[serif][fallback]
\definefontsynonym[Serif] [LucidaBright]
\definefontsynonym[SerifBold] [LucidaBright-Demi]
\definefontsynonym[SerifItalic] [LucidaBright-Italic]
\definefontsynonym[SerifBoldItalic][LucidaBright-DemiItalic]
\stoptypescript
 
\starttypescript [sans] [lucida] [name]
\usetypescript[sans][fallback]
\definefontsynonym[Sans] [LucidaSans]
\definefontsynonym[SansItalic] [LucidaSans-Oblique]
\definefontsynonym[SansBold] [LucidaSans-Demi]
\definefontsynonym[SansBoldItalic] [LucidaSans-DemiOblique]
\stoptypescript
 
\starttypescript [mono] [lucida] [name]
\usetypescript[mono][fallback]
\definefontsynonym[Mono] [LucidaSans-Typewriter]
\definefontsynonym[MonoItalic] [LucidaSans-TypewriterOblique]
\definefontsynonym[MonoBold] [LucidaSans-TypewriterBold]
\definefontsynonym[MonoBoldItalic] [LucidaSans-TypewriterBoldOblique]
\stoptypescript
 
\starttypescript [Lucida]
\definetypeface[MyLucida][rm][serif][lucida][default][encoding=texnansi]
\definetypeface[MyLucida][ss][sans][lucida][default][encoding=texnansi]
\definetypeface[MyLucida][tt][mono][lucida][default][encoding=texnansi]
\stoptypescript
</texcode>
 
Usage
 
<texcode>
\usetypescriptfile[type-lucida]
\usetypescript[Lucida][texnansi]
\setupbodyfont[MyLucida,10pt]
</texcode>
 
Have fun!
 
[[Category:Fonts]]
102

edits

Navigation menu