[OS X TeX] Newbie TeTex font installation

Paul Vickers paul.vickers at unn.ac.uk
Wed Nov 16 17:55:25 EST 2005


Peter

Thanks for that. I'm happy to convert to PS first - I'm not especially 
wedded to having to have the ttf files in the system. My goal is just to 
be able to use fonts in LaTeX that I have been using in non-tex 
environments. If it's easier/more straightforward to convert a ttf to PS 
first, then I'm happy to do that - I just need to know what to do. I'm 
guessing I use ttf2tfm or some such to do that?

I have ttf2tfm, ttf2pk, Fondu etc, and am happy working in the Bash shell.

Anyways, I'll read through your reply in detail tomorrow (off to bed 
now!) and see how far I get. In the meantime, if anyone has any further 
advice, much appreciated.

Finally, the \requirepackage was just a temporary hack I used which I 
borrowed from a .sty file to see if I could get anything working.

Paul

Peter Dyballa wrote:
> 
> Am 16.11.2005 um 22:00 schrieb Paul Vickers:
> 
>> I'm pulling my hair out trying to figure out how to take one of my 
>> TrueType font families (say, GillSans.ttf, GillSansItalic.ttf, 
>> GillSansBold.ttf, and GillSansBoldItalic.ttf) and converting it so I 
>> can use it with LaTeX (pdfLaTeX to be precise).
>>
> 
> You need the TFM files.
> 
> ttf2tex is not really the best script. Philipp Lehmann wrote that script 
> for a special purpose ...
> 
> If you think that you do not need any tricks (for example a slanted 
> variant, but for Gill Sans this is the same as Italic, or narrow or 
> expanded), then you just need the TFM files and a MAP file with entries 
> like these:
> 
>     iatb8c  AmericanTypewriter-Bold           <TS1-AGL.enc <iatb8a.ttf
>     iatb8t  AmericanTypewriter-Bold           <T1-WGL4.enc <iatb8a.ttf
>     iatr8c  AmericanTypewriter-Regular        <TS1-AGL.enc <iatr8a.ttf
>     iatr8t  AmericanTypewriter-Regular        <T1-WGL4.enc <iatr8a.ttf
> 
> Here I gave the TrueType font files the 'TeX' names, but that's not 
> really necessary. What's necessary, that's that TTF files need to be 
> found by TeX (for example as symlinks in 
> ~/Library/texmf/fonts/truetype/monotype/gillsans to the 'flat' UNIX type 
> files in /Library/Fonts, if they're not 'flat,' i.e. not without 
> ressource fork, then you'd need fondu to fetch the font out of the 
> Macintosh file and then it's more useful to put those 'flat' files into 
> the directory).
> 
> Each TTF file needs two lines. One describes the usual T1 (or TeX-Text) 
> encoding, the other is for the Text Companion encoding TS1 (by 
> \usepackage{textcomp}). There is no encoding for OT1.
> 
> ttf2afm's use would be something like (in bash):
> 
>     ttf2afm -a -o ~/Library/texmf/fonts/afm/monotype/gillsans/pgsr8t.afm 
> -e /usr/local/teTeX/share/texmf.local/fonts/enc/dvips/psnfss/T1-WGL4.enc 
> /Library/Fonts/GillSans.ttf 2> pgsr8t-ttf2afm.log
> 
>     ttf2afm -a -o ~/Library/texmf/fonts/afm/monotype/gillsans/pgsr8c.afm 
> -e /usr/local/teTeX/share/texmf.local/fonts/enc/dvips/psnfss/TS1-AGL.enc 
> /Library/Fonts/GillSans.ttf 2> pgsr8c-ttf2afm.log
> 
> ttf2tfm's use would be something like (in bash):
> 
>     ttf2tfm /Library/Fonts/GillSans.ttf -N -u -T 
> /usr/local/teTeX/share/texmf.local/fonts/enc/dvips/psnfss/T1-WGL4.enc 
> ~/Library/texmf/fonts/tfm/monotype/gillsans/pgsr8t.tfm 2> 
> pgsr8t-ttf2tfm.log
> 
>     ttf2tfm /Library/Fonts/GillSans.ttf -N -u -T 
> /usr/local/teTeX/share/texmf.local/fonts/enc/dvips/psnfss/TS1-AGL.enc 
> ~/Library/texmf/fonts/tfm/monotype/gillsans/pgsr8c.tfm 2> 
> pgsr8c-ttf2tfm.log
> 
> In tcsh you can't "2<" to redirect errors to a file but would need to 
> put the command in parentheses like ( ttf2xxx .... ) >& pgsXXX.log.
> 
> You would need to create the target directories (mkdir -p 
> ~/Library/texmf/fonts/{afm,tfm,truetype}/monotype/gillsans).
> 
> I'm not really an expert with the ttf2xxx programmes. They might need 
> different options. (I prefer to convert TTF to PostScript Type 1 and 
> then use fontinst, which offers some nice options. Sorry, the single 
> Perl script is not finished yet.) If they do not work right, do send a 
> bug report to the author(s), as indicated in the man pages! But I know 
> that I can't use \RequirePackage in a LaTeX file. \RequirePackage is 
> reserved for use in CLS files. \usepackage is the right statement.
> 
> -- 
> Greetings
> 
>   Pete
> 
> There's no sense in being precise when you don't
> even know what you're talking about.
>         -- John von Neumann
> 
> ------------------------- 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/
> 
> 

-- 
____________________________________
Dr P. Vickers BSc PhD CEng MIEE ILTM
Reader in Human-Computer Interaction &
Visiting Research Fellow of Loughborough University

School of Computing, Engineering, & Information Sciences
Northumbria University
Pandon Building, Camden Street
Newcastle-upon-Tyne
NE2 1XE

Tel +44 (0)191 243-7614
Fax +44 (0)870 133-9127
e-mail: paul.vickers at northumbria.ac.uk
web: www.paulvickers.com/northumbria

Any views expressed in this message are those of the individual sender,
except where the sender specifically states them to be the views of
Northumbria University.

====

This e-mail is intended solely for the addressee. It may contain private
and confidential information. If you are not the intended addressee,
please take no action based on it nor show a copy to anyone. Please
reply to this e-mail to highlight the error. You should also be aware
that all electronic mail from, to, or within Northumbria University may
be the subject of a request under the Freedom of Information Act 2000
and related legislation, and therefore may be required to be disclosed
to third parties.

This e-mail and attachments have been scanned for viruses prior to
leaving Northumbria University. Northumbria University will not be
liable for any losses as a result of any viruses being passed on.
------------------------- 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 MacOSX-TeX mailing list