Am 05.01.2026 um 17:40 schrieb Alan Caruanambo:
I have another question. How do I make each character draw differently?

\setupbodyfont[modern]
\setupbodyfont[punk,10pt]
\starttext
AAAAAAAA
\stoptext

Each letter A should be drawn slightly differently.

The punkrandom feature sets only 5 random characters but you can create your own feature set with more variants, increasing the limit results in longer processing time (try the commented example).

\useMPlibrary[punk]

\setupbodyfont[punk]

\startTEXpage[offset=1em]

\enablerandomvariants

\definedfont[Serif*punkrandom]
\dorecurse{20}{A}

%\definefontfeature[punkmaxrandom][metapost={category=punk,preroll=punkpreroll,variants=50}]
%\definedfont[Serif*punkmaxrandom]
%\dorecurse{20}{A}

\stopTEXpage

Wolfgang

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : [email protected] / 
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
___________________________________________________________________________________

Reply via email to