I'm trying to load Montserrat & FontAwesome from a local directory in conTeXt, while parsing markdown w/ pandoc.
Adding the font with mtxrun
doesn't seem to work:
export OSFONTDIR=$(pwd)/in/fonts/
mtxrun --script fonts --reload
even trying to list the fonts afterwards with mtxrun --script fonts --list --all
is unsuccessful.
Also generating a typescript seems to fail resulting in a mysterious pandoc: Error producing PDF
:
\usemodule[simplefonts][size=12pt]
\startenvironment montserrat
\starttypescript[montserrat]
\definefontsynonym [Sans] [file:Montserrat-Light.otf]
\definefontsynonym [SansBold] [file:Montserrat-Bold.otf]
\stoptypescript
\stopenvironment
\setmainfont[Sans]
\startenvironment fontawesome
\starttypescript[fontawesome]
\definefontsynonym [FA] [file:FontAwesome.otf]
\stoptypescript
\stopenvironment
(with and without [features=default]
or .otf
on each \definefontsynonym
) What am I doing wrong?
typescript
and the load the fonts by filename, e.g.\definefontsynonym [Serif] [file:myfontregular.otf] [features=defult]
.