I have otf Alegreya Sans Small Caps installed system wide:
luaotfload-tool --find="AlegreyaSansSC" --fuzzy luaotfload | resolve : Font "AlegreyaSansSC" found! luaotfload | resolve : Resolved file name "~/.local/share/fonts/AlegreyaSansSC-Regular.otf"
I also have ttf Alegreya:
luaotfload-tool --find="Alegreya" --fuzzyluaotfload | resolve : Font "Alegreya" found! luaotfload | resolve : Resolved file name "/usr/local/texlive/2017/texmf-dist/fonts/truetype/huerta/alegreya/Alegreya-%Regular.ttf"
But using them is a problem, because for some reason LuaLaTeX thinks they are non existent.
lualatex
of the following file:
\documentclass [letterpaper,12pt]{scrartcl}
\usepackage {fontspec}
\setmainfont{TeX Gyre Schola}
\newfontfamily\myfont1{home/bob/.local/share/fonts/AlegreyaSansSC-Regular.otf}
\newfontfamily\myfont2{Alegreya}
\begin{document}
Hail the bows of war the clash of titans, the rude dogs of destiny.
{\myfont1 Make the halls of bows of holly, titan lala la tr la la la}
{\myfont2 Hallelujah the time is now!}
\end{document}
produces this:
Any help in troubleshooting would be appreciated.
\setsansfont{Alegreya Sans}[SmallCapsFont={* SC},ItalicFeatures={SmallCapsFont={Alegreya Sans SC Italic}}]
luatexbase
?luatexbase
is being loaded because I'm using this with a lua script that needs that in order to work. I don't get why some fonts seem to install fine, and others like Alegreya don't seem to be recognized. Its pretty frustrating. I still would like to have a way to arbitrarily ask an otf font to load and reliably be able to use it.~
is an active character expanding to \penalty and \hspace so probably not too useful in a font name without some care