sebschub / FontPro

LaTeX support for Adobe's Pro opentype fonts: Minion Pro, Myriad Pro, Cronos Pro and possibly more
226 stars 42 forks source link

Ornaments are not working #63

Closed lunacookies closed 6 years ago

lunacookies commented 6 years ago

Checklist

MWE

\documentclass[a4paper,12pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[british]{babel}
\usepackage{blindtext}
\usepackage{MinionPro}
\usepackage{pifont}
\begin{document}
\Pisymbol{MinionPro-Extra}{110}
\blindtext
\end{document}

Problem

I tried following the instructions in the MinionPro manual (§5) for using Minion Pro's ornaments, but, instead of showing up as a flower, the MWE from above displays the ornament as a box with an "X" in the middle. Additionally, it might be helpful to know that the MWE outputs this error during compilation (just so you know, I compiled with latexmk -pdf and an empty ~/.latexmkrc):

pdfTeX warning: pdflatex (file /Users/myusername/Library/texmf/fonts/type1/adobe/Mi
nionPro/MinionPro-Regular.pfb): glyph `orn.011' undefined

This post says that it is a problem with the version of Minion Pro you use to generate MinionPro, that Adobe changed the ornament code from orn.x to bullet.x, and that they were going to change the encoding file.

Is this correct? If it is, how do I do that? In the comments, it turns out that the developer has the pre-modified the files at a link, but the link is dead.

lunacookies commented 6 years ago

Never mind, I grepped for orn in ~/Library/texmf, and found the corresponding file: ~/Library/texmf/fonts/enc/dvips/MinionPro/base-MinionPro-ad.enc Then I ran $ sed -i .bak 's/orn/bullet/g' ~/Library/texmf/fonts/enc/dvips/MinionPro/base-MinionPro-ad.enc, which completely solved the problem.