4

I am using Asea font http://users.teilar.gr/~g1951d/Textfonts.zip

From http://users.teilar.gr/~g1951d/

And I want to pick some characters that are not encoded in unicode, but are present in the font, like these:

enter image description here

The alpha with macron and smooth breathing appear in position "1114698 (0x11024a)" (I saw at FontForge), but does not have an unicode (U + XXXX) number. How can I select this symbol using fontspec package (the \symbol command)?

AboAmmar
  • 46,352
  • 4
  • 58
  • 127
  • 1
    See also https://tex.stackexchange.com/questions/98188/how-can-i-access-a-specific-glyph-in-lualatex-fontspec (although Ulrike Fischer came up with a great answer specific to your question, so it’s not really a duplicate). – Davislor Dec 28 '18 at 20:39
  • 1
    See also https://tex.stackexchange.com/q/420167. – stone-zeng Jan 01 '19 at 15:22

1 Answers1

8

The glyphs can be accessed through a ligature with the macron accent (U+0304):

\documentclass{article}
\usepackage{fontspec}
\setmainfont{Asea.ttf}[Script=Greek]
\begin{document}
ᾱ^^^^0304 ά^^^^0304 ὰ^^^^0304 ἀ^^^^0304 ἁ^^^^0304 ἄ^^^^0304 ἂ^^^^0304 
ἅ^^^^0304 ἃ^^^^0304
\end{document}

enter image description here

Ulrike Fischer
  • 327,261
  • While that works for this particular font, what if there were no ligature combination to access it? (unlikely but, that would make the answer a lot more general, if it's possible) – user0721090601 Dec 28 '18 at 17:43
  • @guifa there is no general answer. It depends on the font how glyph can be accessed - sometimes such glyphs are stylistic variants, here they are used in ligatures. – Ulrike Fischer Dec 28 '18 at 17:46
  • It's also possible to store glyphs in a font without having a way to access them via ligatures, variants, etc, and thus only access than by glyph ID. That would be the general answer, but I don't know if fontspec gives that level of access. – user0721090601 Dec 28 '18 at 18:42
  • 1
    @guifa you can do \char 983627 (with luatex, xelatex would need some other number) you can also access by glyphname. – Ulrike Fischer Dec 28 '18 at 19:02