Re: Gem [text2D] including line breaks
IOhannes m zmoelnig via Pd-list <[email protected]> Wed, 28 Jan 2026 15:04:35 +0100
| Newsgroups | gmane.comp.multimedia.puredata.general |
|---|---|
| Message-ID | <[email protected]> |
On 1/28/26 14:36, Benjamin Wesch wrote: > On Wed, Jan 28, 2026 at 12:10 PM IOhannes m zmoelnig via Pd-list > <[email protected]> wrote: >> like in the attached patch. > > this is really cool - thanks for the contributions and inspiration, > cyrille and iohannes! > with left-aligned text, i saw that the lists with additional line > break characters result in a leading whitespace on the left. yes. that's because we are actually adding a *word* with the content "\n" - and the word is surrounded by whitespace. basically, my advice is to use the [string( message with unicode points: - use [file] to read the raw UTF-8 bytes - use [unicode/utf82codenumber] to convert the UTF-8 bytes into unicode-points - prefix [string( this also allows you to render text with multiple consecutive whitespace characters (" " vs " "). note that the TAB character usually does not render as whitespace. gfdasr IOhannes -- please do not CC me for list-emails --- [email protected] - the Pure Data mailinglist https://lists.iem.at/hyperkitty/list/[email protected]/message/TZUB5QZP6TYJHY5GRTO3WOMBZLY3MKQ2/ To unsubscribe send an email to [email protected] mailing list UNSUBSCRIBE and account-management -> https://lists.iem.at/
OpenPGP_signature.asc
(application/pgp-signature, 840 B)
-----BEGIN PGP SIGNATURE----- wsF5BAABCAAjFiEEdAXnRVdICXNIABVttlAZxH96NvgFAml6F3MFAwAAAAAACgkQtlAZxH96Nvgk MA/9FpSDTqQPxJJZOKLBsBWnU9XwE/koijnifySYoTSXFnPya0nX12lCsYjCDnsJnX0lf3CzVJ03 lamdFVj7j9NK23qsJ4Z9EBlKTddgs7SZbui0/savGpo3tD9fBlazRvApmZPJceD4kDK2YiCcjOcV tqTxJ098dMDX3no4aFzPPYRD/hMTxtC7rVF6XJsCHJtzq0T5SppDyZhKusy2zc5Spn5Mnh+dCPqB xuYlHHdsJ18nAuvhQLrfx0doRlH0cOT5jdXbyDZOjS5ZCwH97BZg3kAfIquxMep64qix6rpIh1e0 hqW1xKMtRRhJD/Mr80qC26pVlYFhFhEv5htS5zUU2L50Tdn1ZfrdMZSEloW3Y1ka1dcKA3dvCO7w Fai15rP6db+jZbezesZR1bpofJrmiYMmjRd5HTdoR9K/kB1Kkws7EVJgAuthA1b0lpUj2AcQAqVc nIhg0VTmIfASGKTgLB/CpwV5MP8pGjOuPvRBOeHEapmi/rxIGcTzEz1L2XPAMgJUF0cCE/UrvZsT tzfBz3F8whOZWpGXN7iT+KDy9KDKkhxksSKPOx43D8ckVSZhNoZA/WUCH828wfFwnLJRsCP6JKtD JJGy5PhcwzOPefGLYBJ2EubfUnS06LKICYKWMEhftY8HKD+/yarEZEHei7j43vBlxWDm8oWOnICY 3L0= =zqOt -----END PGP SIGNATURE-----