You are correct that fontspec doesn't have proper support for Graphite fonts yet. However, I did once add the option to select the Graphite font renderer. Here's an example:
\documentclass{article}
\usepackage{fontspec}
\begin{document}
\fontspec[
Renderer=Graphite,
RawFeature={
Special=Hide tone contour staves
}
]{Charis SIL}
foo
\end{document}
I've hardly worked at all with any Graphite fonts, however, and I don't know if this is sufficient (it's certainly not optimal in terms of user interface).
Update: here's an actual example that shows something useful:
\fontspec[Renderer=Graphite,RawFeature={1024=0}]{Charis SIL} Ŋ
\fontspec[Renderer=Graphite,RawFeature={1024=1}]{Charis SIL} Ŋ
\fontspec[Renderer=Graphite,RawFeature={Uppercase Eng alternates=Large eng on baseline}]{Charis SIL} Ŋ
\fontspec[Renderer=Graphite,RawFeature={1024=2}]{Charis SIL} Ŋ
\fontspec[Renderer=Graphite,RawFeature={1024=3}]{Charis SIL} Ŋ
Lines 2 and 3 are equivalent. To get a listing of what font features are available, you can use the ‘aat-info.tex’ file and use the following for the first two code lines:
\def\myfontname{Charis SIL/GR}
\font\testfont="\myfontname" at 10pt
Best Answer
Define your colour shade of black first and then add that to the
font
spec
ification using theColor
(orColour
) key-value:Combined usage would be