In some OpenType fonts e.g. XITS Math, there are some non-unicode glyphs. For example, the "display integral" glyph has the same code point (U+222B) as the normal integral. Although the big int can be used with \displaystyle, but how to use it directly (like \symbol{...})?
Both XeLaTeX and LuaLaTeX solutions are welcome.
Update:
Using XITS Math as an example. At the end of unicode block, there are a lot of glyph variants with name as unixxxx.yyy. xxxx here is the code point, while yyy is the variants name. For example, uni222B.display is the big integral with unicode value -1 and glyph index 3584 (0xE00). Obviously, using it's unicode value as \symbol{-1} will not give the correct symbol.
Definitely, with commands like \displaystyle, one can easily get access to the big integral symbol. However, how can I use the other symbols, like u1D49C.cal (script A) and uni221D.rtlm (right to left form propotional)?
Although there are speific tricks to use there symbol, to access all these symbols uniformly is also very useful (e.g. creating a font table).



\newcommand{\myintegral}{$\displaystyle\char"222B$}? – Marijn Mar 14 '18 at 17:05