
Am 14.06.2025 um 09:46 schrieb Damien Thiriet via ntg-context:
Hi,
My presentations are using the luciole font (https://luciole- vision.com/), a font designed for eyed-impaired people and big sizes. It is quite appreciated by my pupils. However, some titles are overboxed. There is certainly a way to force line break and avoid such breaks, but I don't know it (although I attended Hans and Mikael's brilliant speeches about \penalty ).
I designed a MWE reproducing this with Latin Modern Sans.
\setuppapersize [S3]
\setupbodyfont [sans,24pt] \setupalign[nothyphenated] \setuptolerance[verytolerant,stretch]
\starttext \startsection[title={Don't be hyphenated, no overfullboxes}] \input ward \stopsection \stoptext
\setuphead[section][align={flushleft,nothyphenated,broad}] or \setuphead[section][align={normal,nothyphenated,verytolerant,extremestretch}]
PS: For those interested in Luciole, my typescripts:
%\starttypescript [luciole] % \definefontsynonym [Luciole-Regular] [file:Luciole-Regular] % \definefontsynonym [Luciole-Italic] [file:Luciole-Regular-Italic] % \definefontsynonym [Luciole-BoldItalic] [file:Luciole-Bold-Italic] % \definefontsynonym [Luciole-Bold] [file:Luciole-Bold] %\stoptypescript % %\starttypescript [luciole] % \setups [font:fallback:sans] % \definefontsynonym[Sans] [Luciole-Regular] [features=default] % \definefontsynonym[SansItalic] [Luciole-Italic] [features=default] % \definefontsynonym[SansBoldItalic] [Luciole-BoldItalic] [features=default] % \definefontsynonym[SansBold] [Luciole-Bold] [features=default] %\stoptypescript % %\starttypescript [luciole] % \definetypeface [luciole] [ss] [sans] [luciole] [default] %\stoptypescript %
Alternative method: \definefontfamily [luciole] [sans] [luciole]
%\usetypescriptfile [luciole] %\setupbodyfont[luciole,sans,24pt]
You don't need \usetypescriptfile when the name of the typescript and typeface are the same because \setupbodyfont loads the file on its own. Wolfgang