Hi, I would be greatful for some advise.
I'm using msgfile to display lines of text with my own font. See attached patch. It works fine but when the line of text is too long it falls outside the display. I still would like to use my font with large points. My solution now is to break the text up with ";"
I could create a second 'gemhead' and divide the text in two source texts and display two lines but to do that by hand creates problems with my very large source files (1000+ lines of text).
So the question is: is there a way to make a long line of text break automatically over two lines, which are then shown at the same time?
I'm working on a MAC with PD extended version 0.43.4
I'll add a source file to the second message.
-
Display text with msgfile: line break or 2 lines possible?
vvvr ____________________http://www.symbiotext.net
-
Hi, I just made a patch that displays two lines of text from one textfile. I have used [qlist] to separate different parts of the text that are then displayed in GEM on two separate lines. It has two alternative ways of timing and changing the text. Thanks to Alexandros and others for their input and ideas.
Still an automatic textbreak I have not been able to make to work from a [read textfilexxx], but then PD was never made to work with text... An idea for a new object?
I'll attach the patch here (and in the patches section). An example text file at next message.vvvr ____________________http://www.symbiotext.net
-
Hi, I just made a patch that displays two lines of text from one textfile. I have used [qlist] to separate different parts of the text that are then displayed in GEM on two separate lines. It has two alternative ways of timing and changing the text. Thanks to Alexandros and others for their input and ideas.
Still an automatic textbreak I have not been able to make to work from a [read textfilexxx], but then PD was never made to work with text... An idea for a new object?
I'll attach the patch here (and in the patches section). An example text file at next message.vvvr ____________________http://www.symbiotext.net
-
Just an idea that came to mind, why don't you create a new instance of [text2d] with an Yaxis offset whenever you want to change a line?
-
Just made this, which seems to work. It's a very raw approach, especially concerning how to send text to each instance. But if it's gonna be for two lines only (like subtitles for example) this could work. It gives some idea to how dynamic multiple lines of text could be approached though..I'll give it another shot to see if it can be made easier and come back.
In the attached patch you can add up to two lines of text, one line rendering 'bla bla bla' and the other 'yo yo yo'. You set the number of line in the number under the 'add lines of text' comment, and you set their y-coordinates in [tabwrite newLine] below that.
Give it a try and let me know if this is any good..http://www.pdpatchrepo.info/hurleur/multiple_lines_of_text.pd
-
The idea is to automate this process when you text exceeds a certain amount of letters...you'll have to do some distance measurement for that
-
Thats great Alexandros! I like the one gemhead because it will use less CPU. If we can combine this with a message separation from a [read textxxx( that could work. I'll play with it later this week. Thanks. vvvr.
vvvr ____________________http://www.symbiotext.net
-
Just found an amazing abstraction from a reply by Husk:
http://puredata.hurleur.com/sujet-5007-writing-paragraphs-text2d
Its called stringText by Luca Carrubba for gemQ // pantaliQa project
http://www.pantaliqa.org/I tried to change stringtext so that it accepts a [read text.txt( instead of typing but no luck yet...
The amazing gemQ patch seems to allow for a read text input. mmm. need to look into this.vvvr ____________________http://www.symbiotext.net