# [Dev-luatex] Fonts used for luatex discretionaries

Hans Hagen j.hagen at xs4all.nl
Sat Jul 30 11:37:53 CEST 2022

```On 7/29/2022 9:39 PM, David Carlisle wrote:
> Normally a hyphen inserted at a line break comes from the font used for
> the current word.
>
> If the luatex extended {before}{after}{nobreak} syntax is used in
> \hyphenation the same is true unless the nobreak field is empty in which
> case the font from (I think) the end of the paragraph is used.
>
> This is LuaTeX, Version 1.15.0 (TeX Live 2022)
>
> You can work around the issue by repeating the following character so
>
>
> in the attached example, but this seems wrong?
works ok in luametatex where it uses the wordstart font so i'll see if i
can backport that bit (the language code is quite different so i need to
check carefully)

Hans

-----------------------------------------------------------------