Enable hyphenation for monospaced font
Teemu Likonen
tlikonen at iki.fi
Sat Jul 31 07:24:37 CEST 2021
* 2021-07-30 23:30:11+0200, Ulrike Fischer wrote:
> Am Fri, 30 Jul 2021 11:37:51 +0300 schrieb Teemu Likonen:
>> What is the preferred, officially supported and documented way to enable
>> hyphenation for monospaced font using fontspec and Lualatex?
>
> I would reset the default font features before loading the monofont:
>
> \defaultfontfeatures
> [\ttfamily]
> {WordSpace={1,0,0},
> % HyphenChar=None, % remove this
> PunctuationSpace=WordSpace}
Thank you. It seems that I want just this:
\defaultfontfeatures[\ttfamily]{}
--
/// Teemu Likonen - .-.. https://www.iki.fi/tlikonen/
// OpenPGP: 4E1055DC84E9DFF613D78557719D69D324539450
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 251 bytes
Desc: not available
URL: <https://tug.org/pipermail/texhax/attachments/20210731/c8827706/attachment.sig>
More information about the texhax
mailing list.