Under Mac OS X 10.6.7, with updated TeXLive 2010, luatex is 64bit.
The the automatically selected optical size is simply a mess. Using Acrobat to investigate the selected fonts for each word, it is found that "Italic Caption" and "Bold Caption" are used for 24pt fonts while 14 point fonts are mixed with "Sub head" and "Regular".
With this setup, correct optical fonts are selected. (The reason I use numbers like 8.41 instead of the 8.4 in Minion Pro is that fontspec use X <= s < Y in size range. For example with \fontsize{13}{13}, and the actual fontsize TeX use is 12.97, if I set Size = 8.4-13, then Subhead is used by fontspec, since the 13 >= 13 white the actually used font 12.97 <= 13. So I shifted the range a little bit.)
Anyway, with the above setup, optical size now works fine.
For the weight, Bold{(\textbf), Italic(\textit), Bold Italic(\textbf{\texit{}}) all works fine. But the regular fonts is a mess. And it seems to be platform dependent, so I guess this is more or less a problem with the interaction of fontspec with luatex or purely a problem with luatex.
To be more specific,
On my Mac, the following weights are used for regular fonts (no bold, no italic). In the following I use "Regular" weights to refer to MinionPro-Capt.otf, MinionPro-Disp.otf, etc.
Caption: Regular
Text: Medium
Subh: Medium
Disp: Regular
But on my RHEL 6.1, still with updated TeXLive 2011, the weights chosen are,
Caption: Medium
Text: Regular
Subh: Regular
Disp: Medium
Though "Medium" and "Regular" do differ very little. But this randomness output is just too strange.
I tried to specify specific fonts for each optical size and bold/italic, but as in issue #7, I cannot get it work.
A simple workaround is to exclude the medium weight font when running mkluatexfontdb, so fontspec or luatex won't be confused.
This is a little bit related to issue #7.
fontspec when use with luatex, select "wrong" font weights and optical size, here is a minimum example,
Under Mac OS X 10.6.7, with updated TeXLive 2010, luatex is 64bit. The the automatically selected optical size is simply a mess. Using Acrobat to investigate the selected fonts for each word, it is found that "Italic Caption" and "Bold Caption" are used for 24pt fonts while 14 point fonts are mixed with "Sub head" and "Regular".
Now change the \setmainfont to the following,
With this setup, correct optical fonts are selected. (The reason I use numbers like 8.41 instead of the 8.4 in Minion Pro is that fontspec use X <= s < Y in size range. For example with \fontsize{13}{13}, and the actual fontsize TeX use is 12.97, if I set Size = 8.4-13, then Subhead is used by fontspec, since the 13 >= 13 white the actually used font 12.97 <= 13. So I shifted the range a little bit.)
Anyway, with the above setup, optical size now works fine.
For the weight, Bold{(\textbf), Italic(\textit), Bold Italic(\textbf{\texit{}}) all works fine. But the regular fonts is a mess. And it seems to be platform dependent, so I guess this is more or less a problem with the interaction of fontspec with luatex or purely a problem with luatex.
To be more specific, On my Mac, the following weights are used for regular fonts (no bold, no italic). In the following I use "Regular" weights to refer to MinionPro-Capt.otf, MinionPro-Disp.otf, etc. Caption: Regular Text: Medium Subh: Medium Disp: Regular
But on my RHEL 6.1, still with updated TeXLive 2011, the weights chosen are, Caption: Medium Text: Regular Subh: Regular Disp: Medium
Though "Medium" and "Regular" do differ very little. But this randomness output is just too strange.
I tried to specify specific fonts for each optical size and bold/italic, but as in issue #7, I cannot get it work.
A simple workaround is to exclude the medium weight font when running mkluatexfontdb, so fontspec or luatex won't be confused.