
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 Thanks, Damien 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 % %\usetypescriptfile [luciole] %\setupbodyfont[luciole,sans,24pt]

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

On 6/14/25 09:46, Damien Thiriet via ntg-context wrote:
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.
Hi Damien, `\setuphead[section][align={right, broad}]` may be your friend here (even without `broad`).
PS: For those interested in Luciole, my typescripts:
I never created typescripts, since this works fine for me: \definefontfamily[whatever][rm][Luciole] \setupbodyfont [whatever,24pt] Just in case it might help, Pablo

On 6/14/2025 9:46 AM, Damien Thiriet via ntg-context wrote:
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 ).
just don't justify: \setuphead[align=flushleft]
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
Thanks,
Damien
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 %
%\usetypescriptfile [luciole] %\setupbodyfont[luciole,sans,24pt]
___________________________________________________________________________________ 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 ___________________________________________________________________________________
-- ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
participants (4)
-
damien@thiriet.web4me.fr
-
Hans Hagen
-
Pablo Rodriguez
-
Wolfgang Schuster