My eventual font success

I've finally found success with my font installation problem, on multiple fronts!

First I was able to get XeTeX to recognize all the .OTF fonts I'd purchased. XeTeX is a native OS X variant of TeX that can use (basically) any font that OS X has installed. To work with LaTeX I needed to install the XeTeX fontspec package.

XeTeX also works with ConTeXt, which is a very interesting macro system. I haven't yet attempetd to include pictures in a LaTeX document, but with ConTeXt it appears to be a snap. I think I'll use it for my Christmas 2005 book.

Back to the project at hand... I played around with using multiple OTF fonts in the text (various combinations of Minion Pro, Bembo, and Myriad Pro) but came to the conclusion (with some prodding from Ben and Matt) that it would look best set in straight Minion.

So although XeTeX works with LaTeX and it would be easy to use Minion that way there was one package I had been using previously that doesn't work when rendered through XeTeX instead of pdfTeX: the microtype package which doees a very nice job of character protrusion.

So it was back to the drawing board: I needed to get an .otf font installed so it could be used by LaTeX & pdfTeX. I'd spent all last weekend fighting this same battle. I decided to go back to the basics. I reinstalled everything TeX-related fresh. I kept copious notes of what I had tried. I wrote a shell script to do the work so that I could have a means to consistantly and reliably revert back or repeat (perhaps with small tweaks) something I'd done before.

I discovered, in this process of documented experimenting and further scouring of documentation, mailing list archives, and the comp.text.tex newsgroup a likely source of a substantial part of my recent frustration: Changes made in 2004 to the TeX Directory Structure standard as to where font .map and .encoding files go. There's a lot of documentation out on the net that was written before this change.

In the end I succeeded using a combination of otftotfm and the autoinst program from the fontools package.

Here is the otf-to-latex.sh script I wrote that succesfully converts and installs the fonts for me. If I had more energy left I'd mark up an annotated HTML-version. I'll leave that as a possible project for another day...

The devil is in the details and I still have a lot to learn about fonts under various flavors of TeX, but at least for the time being I can go back to making some headway on my actual project.


—Michael A. Cleverly

Comments:

  1. Gustav wrote (at Mon, 13 Feb 2006, 17:42):

Wow! We have something in common. Got hold of the Garamond Pro package (otf) and tried to install it under MikTex. Little did I know about the problems ahead of me. I find a lot of documentation which seemed very ecouraging at first. Just do this and this, copy, past, type, type, type, copy and paste until you cant see anymore. Carry on, drink coffee, try fontinstall package, try autoinst (wow it really looked good there for awhile). But now, I'm just giving it up. I know I am weak, I know I have filed but I just cant f--ing take it anymore. I have spent the best part of a week(!) trying everything I can think of.

HOW CAN IT BE SOOOOO BLOODY DIFFICULT TO INSTALL A FONT!!???!!! WHY, WHY, WHY can there not just be a simple click button pice of package which does it all for me?! I dont care if it costs me any money, just f---ing do it!!!

  1. Michael A. Cleverly wrote (at Sat, 02 Feb 2008, 23:00):
For the record, when I needed to get my Minion Pro fonts working with LaTeX on a new laptop I found I needed one additional step to get them to work with TeX Live 2007...
  1. Gabriel wrote (at Fri, 14 Mar 2008, 21:42):

Could you please help me with a glitch? I tried running your script, but I got the following error

"You need to copy (at least) the ly1 encoding from the fontools/share to somewhere under /usr/local/share/texmf/fonts/enc

Otherwise otftotfm won't be able to convert the font..."

This occurs even after I put ly1.enc in the requested folder. What do I do?

  1. SEO wrote (at Wed, 15 Jul 2020, 06:11):

https://passportes.com/ https://passportes.com/en/passport-slovenii.html https://passportes.com/en/grazhdanstvo-slovakii.html https://passportes.com/en/grazhdanstvo-rumynii.html https://passportes.com/en/grazhdanstvo-vengrii.html

  1. scxd wrote (at Wed, 23 Jun 2021, 01:47):

www.omgka.com www.omgka.com/theking www.omgka.com/sands www.omgka.com/first www.omgka.com/yes www.omgka.com/super www.omgka.com/gatsby www.omgka.com/33 www.omgka.com/world www.omgka.com/merit

  1. scxd wrote (at Wed, 23 Jun 2021, 01:47):

www.bbdd66.com www.bbdd66.com/theking www.bbdd66.com/sands www.bbdd66.com/first www.bbdd66.com/yes www.bbdd66.com/super www.bbdd66.com/gatsby www.bbdd66.com/33 www.bbdd66.com/world www.bbdd66.com/merit

  1. pup wrote (at Mon, 12 Jul 2021, 18:12):

https://putraazagitu.blogspot.com/2014/11/free-template-blogger-seo-responsive.html?showComment=1623911020835#c8529573976233451659

  1. Nancy Brown wrote (at Thu, 07 Apr 2022, 20:14):

Nice Presentation. We are from https://graphicexpertsindia.com/

Permanent URL for this post: http://blog.cleverly.com/permalinks/180.html