4

I am trying to access a character from the private use area of the font Aegean. It is supposed to be the second character-variant of the letter šŠ¬ (U+10293), but using the font-feature doesnā€™t yield any results. The \char-command also doesnā€™t work here. MWE:

\documentclass{scrartcl}
\usepackage{fontspec}

\newfontfamily\lycian{Aegean}

\begin{document}

{\lycian šŠ¬ \fontspec{Aegean}[CharacterVariant=2] šŠ¬

\char"10293

\char"1105dc}
\end{document}

Any ideas how I can get the character displayed? Here is a screenshot from FontForge to view the font (there is no sign of the character-variant in the picture [Ā»U+xxxxx.cv01Ā« e.g.], but it is the case with other characters, and the above MWE hasnā€™t worked for them either).

enter image description here

1 Answer 1

5

New Answer

You clarified in the comment that you are using v13.00 of the font and want the second variant of CV06. You can get that by loading aegean.otf with the options [Script=Lycian, CharacterVariant={6:2}].

\documentclass{article}
\tracinglostchars=2 % Warn if the font does not contain a character!
\usepackage{fontspec}

\pagestyle{empty}

\defaultfontfeatures{ Renderer=HarfBuzz,
                      Scale=MatchLowercase,
                      Ligatures=TeX }
\newfontfamily\lycianfont{Aegean.otf}[Script=Lycian] % Requires v13.00

\begin{document}
{\lycianfont
\symbol{"10293}
\addfontfeature{CharacterVariant={6:2}}
šŠ“
\addfontfeature{CharacterVariant={6:4}}
šŠ“
}
\end{document}

Aegean font sample

If you copy and paste from this document, you will get šŠ“ šŠ“ šŠ“.

The zip file from the Unicode Fonts for Ancient Scripts website should come with a document (in both PDF and ODT format) that lists every variant in the font. Otherwise, you can inspect the substitution tables in FontForge, under Elements > Font Info > Substitutions.

Original Answer

First, you seem to be using an older version of the font. The latest version of Aegean, in OTF format, is available here. However, this version has a more-restrictive license and claims to be free only ā€œfor personal use.ā€

With the version of the font youā€™re using, some investigation shows that the variant you want is actually Stylistic Alternative 2 for the Lycian script, or can also be accessed through \symbol.

\documentclass{article}
\tracinglostchars=2 % Warn if the font does not contain a character!
\usepackage{fontspec}

\pagestyle{empty}

\defaultfontfeatures{ Renderer=HarfBuzz,
                      Scale=MatchLowercase,
                      Ligatures=TeX }
\newfontfamily\aegean{Aegean.ttf}[Script=Lycian] % Requires v6.14

\begin{document}
{\aegean
\symbol{"10293}
\addfontfeature{Alternate=2}
šŠ“ (\symbol{"F0286})
}
\end{document}

Aegean font sample

As of 2020, version 13.0 of the font no longer uses the Private Use Area for this symbol, but supports the Unicode character š…ƒ (U+10143).

\documentclass{article}
\tracinglostchars=2 % Warn if the font does not contain a character!
\usepackage{fontspec}

\pagestyle{empty}

\defaultfontfeatures{ Renderer=HarfBuzz,
                      Scale=MatchLowercase,
                      Ligatures=TeX }
\newfontfamily\aegean{Aegean.otf}[Script=Lycian] % Requires v13.00

\begin{document}
{\aegean
\symbol{"10293}
\symbol{"10143} (š…ƒ)
}
\end{document}

Aegean Font Sample

This means that you can patch an installation with only the older font to support the š…ƒ character with

\usepackage{newunicodechar}
\newunicodechar{š…ƒ}{{\aegean\symbol{"F0286}}}

By the way, the way to check for glyph substitutions in FontForge is either to go into the substitution tables within Glyph Info, or to select View > Substitutions and go through the possible tables.

2
  • Oh, yes, I was using the newer font, but I linked the old one! I checked with the newer version of the font, an ran your code, and it worked; but I need to access a character variant which is, according to the glyph info, called glyph4069, not u10143. Is it possible to access this glyph?
    – Kubo
    Commented Jul 18, 2020 at 10:56
  • @Kubo Okay, thatā€™s CV06, variant 2. Iā€™ve updated my answer accordingly.
    – Davislor
    Commented Jul 18, 2020 at 17:37

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .