<div dir="ltr">Hi <span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">João</span>,<div><br></div><div>I used [text3d] in GEM for my "Typing Hero" piece at the last PdCon. It was a piece for 3 networked laptop players to type text read in from a text file to play Bach 3-part inventions. I found that [text3d] did everything I needed and worked as expected for all the issues you mention, except that handling long texts was an issue. Here's a video from that night:</div><div><br></div><div><a href="https://youtu.be/IACzW39PnW8">https://youtu.be/IACzW39PnW8</a></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 28, 2018 at 5:03 PM, Jack <span dir="ltr"><<a href="mailto:jack@rybn.org" target="_blank">jack@rybn.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello João,<br>
<span class=""><br>
Le 28/02/2018 à 19:31, João Pais a écrit :<br>
> Hello list,<br>
><br>
> I was looking on the best way to display some texts which will be<br>
> produced/improvised in realtime. These will be acessible either as a<br>
> list, OSC, or on a file.<br>
><br>
> I tried gem's 2dtext and [flatgui/entry], but they both don't work that<br>
> well, as some or all of the following aren't possible:<br>
<br>
</span>You mean [text2d] for the Gem object... In term of performance, I prefer<br>
to use [text3d]... depending of what you need.<br>
<span class=""><br>
> - centered text<br>
> - some texts are long, so the paragraphs have to break at the end of a word<br>
> - black background, white font - font and size will be chosen later<br>
> - fullscreen on a 2nd screen (to be projected)<br>
<br>
</span>Everything here is doable with [text2d]/[text3d].<br>
<span class=""><br>
><br>
> I imagine the word sliptting and text centering can be calculated in Pd<br>
> so that Gem displays it correctly, but I'm not sure I'll have the time<br>
> for it. So trying another solution such as coordinating with Processing<br>
> or similar would be an option, in case it's easier to implement.<br>
<br>
</span>Centering text is by default with [text2d]/[text3d]. You can change this<br>
with the message "justify".<br>
To cut a sentence after a word when a certain amount of letter is<br>
present is not very difficult using [list fromsymbol], [list prepend<br>
10], [list prepend string]/[list trim] (for text2d]/[text3d]).<br>
<br>
You can even change line spacing with the message "linedist" on recent Gem.<br>
++<br>
<span class="HOEnZb"><font color="#888888"><br>
Jack<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
><br>
> Are there any suggestions on how to tackle this?<br>
><br>
> Best,<br>
><br>
> jmmmp<br>
><br>
> ______________________________<wbr>_________________<br>
> <a href="mailto:Pd-list@lists.iem.at">Pd-list@lists.iem.at</a> mailing list<br>
> UNSUBSCRIBE and account-management -><br>
> <a href="https://lists.puredata.info/listinfo/pd-list" rel="noreferrer" target="_blank">https://lists.puredata.info/<wbr>listinfo/pd-list</a><br>
<br>
<br>
______________________________<wbr>_________________<br>
<a href="mailto:Pd-list@lists.iem.at">Pd-list@lists.iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="https://lists.puredata.info/listinfo/pd-list" rel="noreferrer" target="_blank">https://lists.puredata.info/<wbr>listinfo/pd-list</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">William Brent<br><a href="http://www.williambrent.com" target="_blank">www.williambrent.com</a><br><br>“Great minds flock together”<br>Conflations: conversational idiom for the 21st century<br><br><a href="http://www.conflations.com" target="_blank">www.conflations.com</a></div>
</div>