Here is what I did (and it worked) * clone the repo * mkdir [context root]/tex/texmf-fonts/fonts/data/urbanist * copy the *.otfs there * mtxrun —generate * fix 3 errors in your typescript (“name:” => “file:”) * done
(for Hraban: mtxrun —scripts fonts —reload will run automatically if a font cannot be found) > On 22 Jul 2024, at 10:33, alan.caruanam...@gmail.com wrote: > > Hello, I was trying to install the urbanist fonts > (https://github.com/coreyhu/Urbanist) but I couldn't get it to load and save > the fonts in the system folder and in the ConTeXt folder without success, I > could only get it to load when saving them in the current working directory > but that is annoying, help me by telling me the correct way to install it... > I leave you my code so you can review it and give me advice to improve it > > \starttypescript [sans] [urbanist] > \definefontsynonym > [Urbanist][file:urbanist-regular.otf*default][features=default] > \definefontsynonym > [UrbanistItalic][name:urbanist-italic.otf*default][features=default] > \definefontsynonym > [UrbanistBold][name:urbanist-bold.otf*default][features=default] > \definefontsynonym > [UrbanistBoldItalic][name:urbanist-bolditalic.otf*default][features=default] > \stoptypescript > > \starttypescript [sans] [urbanist] > \definefontsynonym [Sans][Urbanist][features=default] > \definefontsynonym [SansItalic][UrbanistItalic][features=default] > \definefontsynonym [SansBold][UrbanistBold][features=default] > \definefontsynonym [SansBoldItalic][UrbanistBoldItalic][features=default] > \stoptypescript > > \definetypeface[urbanist][ss][sans][urbanist][default] > > \setupbodyfont[urbanist,30pt] > > \starttext > \dorecurse{100}{\bf \input knuth \crlf} > \stoptext > ___________________________________________________________________________________ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / > https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl > webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) > archive : https://github.com/contextgarden/context > wiki : https://wiki.contextgarden.net > ___________________________________________________________________________________ — Taco Hoekwater E: t...@bittext.nl genderfluid (all pronouns) ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________