4

I'm trying to use Minion Pro Italic font, specifically I would like to use the italic "g" with an open tail - instead of the default two-story version.

I found that it is defined as an alternate Cyrillic character "uni0434.ital". I tried to add [Style=Italic] and different alternate values, different script and language options, but it always tells me that the feature is not available, and shows the default "0434 character instead.

Is there some way to use this character? Thanks a lot.

  • 1
    You need to find which (stylistic set) feature it is mapped to. Adobe’s documentation of the font should cover that. – خالد حسني Oct 17 '13 at 10:01
  • It is listed in http://www.adobe.com/type/browser/pdfs/1719.pdf as "Alternate Cyrillic lowercase". Could you help on which option I should use? – user38423 Oct 18 '13 at 01:14
  • This is not a single storey g, but a localised Serbian д. So as such it can’t be used as an alternate g in straight forward way (some macro hackery can do it, but copying from/searching the resulting PDF will give you the Cyrillic character). If I were you, I’d modify the font using e.g. FontForge and make it a stylistic alternate of g with proper glyph name. – خالد حسني Oct 18 '13 at 04:47
  • I see it's actually been used for fonts like MinionMath... Beyond the discussion of whether it is a proper "g", I'm now more concerned about how to access a similar alternative character in a font. Could you give me a hint? – user38423 Oct 20 '13 at 21:56
  • You can check the mappings in FontForge or a similar program, and see which ones support it. If it’s localized for Serbian, it might possibly be [Script=Cyrillic, Language=Serbian]. – Davislor Jan 05 '21 at 21:53

2 Answers2

2

LuaLaTeX can add virtual features to Open Type fonts. Since only glyphs are exchanged (not characters), find and copy should still work as expected in PDF viewers. I didn‘t test that, though.

% !TEX TS-program = LuaLaTeX
\begin{filecontents}{test.fea}
languagesystem DFLT dflt;
languagesystem latn dflt;

feature test {
  sub g by uni0434.ital;
} test;
\end{filecontents}
\documentclass{minimal}
\usepackage{fontspec}
\setmainfont[FeatureFile=test.fea,RawFeature=+test;]{Minion Pro}
\begin{document}
g \textit{g} \textbf{g \textit{g}} \textsc{g}
\end{document}
Crissov
  • 1,866
0

The glyph you are looking for has no Unicode codepoint assigned in the font, but you can get it through the glyph ID, which in this case is 1843 (at least in my particular version of Minion Pro, this may be different in other versions). The command is \XeTeXglyph1843.

You can see the ID for example by using FontBook on a Mac (tooltip on mouseover).

Example:

\documentclass{article}
\usepackage{fontspec}
\setmainfont{Minion Pro Italic}

\begin{document}

\Huge G – g – \XeTeXglyph1843

\end{document}

Result:

enter image description here

However, as others have mentioned, this is not really a Latin g. There is actually a Unicode codepoint in the shape that you want, it is 'LATIN SMALL LETTER SCRIPT G' (U+0261). But Minion Pro does not have a glyph for this codepoint, so you are simply out of luck.

lvcivs
  • 894