Fonts & Character SetsProblem with XeTex and Minion Pro Optical

Information and discussion about fonts and character sets (e.g. how to use language specific characters)
Post Reply
hesitz
Posts: 12
Joined: Mon Jun 07, 2010 2:32 am

Problem with XeTex and Minion Pro Optical

Post by hesitz »

I've been using the Garamond Premier Pro opentype font with MikTex/XeTeX and it seems to be working fine. All the opentype extensions work properly using fontspec: ligatures, smallcaps, old style nums, etc.

I just got Minion Pro Optical font and I can't get it to work right. I had assumed I would just be able to change my documents to Minion by just substituting Minion Pro for Garamond Premier Pro, but that doesn't work. The Minion Pro has problems with opentype extensions when I do that.

E.g., here's code that works fine with Garamond Premier Pro:

Code: Select all

Code, edit and compile here:
\documentclass[12pt,letterpaper,english]{article}
\usepackage{fontspec}
\defaultfontfeatures{Numbers=OldStyle,Contextuals=WordFinal}
\setmainfont{Garamond Premier Pro}
\begin{document}
[text here]
\end{document}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
If I substitute 'Minion Pro' in the setmainfont line above, it prints out in Minion, but none of the opentype extensions work. Where there should be a ligature, smallcaps, or old style nums it prints gibberish.

If I add the fontenc package, as below, it improves so that I get proper ligatures and smallcaps, but still no old style numerals. [EDIT: TURNS OUT I WAS WRONG, THE FONTENC PACKAGE HELPED ONLY BY MAKING MINION NOT WORK AT ALL, IT PRINTED IN WHATEVER DEFAULT FONT IS IN MIKTEX INSTALLATION]

Code: Select all

Code, edit and compile here:
\documentclass[12pt,letterpaper,english]{article}
\usepackage{fontspec}
\usepackage[T1]{fontenc}
\defaultfontfeatures{Numbers=OldStyle,Contextuals=WordFinal}
\setmainfont{Minion Pro}
\begin{document}
[text here]
\end{document}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

I can't find any information about what the problem could be. Is it something to do with using the Optical font that I'm not doing properly?
Last edited by hesitz on Thu Jun 10, 2010 10:56 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Problem with XeTex and Minion Pro Optical

Post by frabjous »

I just compiled the following document:

Code: Select all

Code, edit and compile here:
\documentclass[12pt,letterpaper]{article}
\usepackage{fontspec}
\defaultfontfeatures{Numbers=OldStyle}
\setmainfont{Minion Pro}
\begin{document}
1234567890
\textsc{SmallCaps}
The flashy affluent have an affinity for fishing off of fjords.
\end{document}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
And I didn't have a problem. (The resulting PDF is attached.) I did, however, remove the Contextuals=WordFinal option (an option which XeTeX said it didn't have) as well as the nonexistent "english" option for the article class.

Not sure what the problem could be for you. You might try seeing what version of xetex and fontspec you have. Also, I've learned from experience that sometimes things like this are caused when xetex gets confused by Font names, which can happen if you've got similarly named fonts installed. (E.g., Minion Web or Minion Std, etc.) You might want to make sure you don't, and try again.
Attachments
test.pdf
(7.55 KiB) Downloaded 455 times
hesitz
Posts: 12
Joined: Mon Jun 07, 2010 2:32 am

Re: Problem with XeTex and Minion Pro Optical

Post by hesitz »

frabjous --

Oh what a day! Callooh! Callay! You hit it on the head with the font name confusion!

At first I just looked in the Windows font directory and didn't see any other Minions. But I finally did file search over entire machine and found some Minions in the Adobe Reader font directory. Apparently that directory was getting searched first. I've renamed the Reader web Minions for now. Is there some way to change the search order used by XeTeX so I don't have to rename the Adobe Reader Minions?
Post Reply